recording actions tooltips

This commit is contained in:
Zachary Chai 2016-11-17 16:30:04 -05:00
parent fd044fc75d
commit 8b536c4934
4 changed files with 32 additions and 9 deletions

View File

@ -87,7 +87,7 @@
$(this).select(); $(this).select();
}); });
// only allow ctrl-c to work // only allow ctrl commands
$('.center-panel-wrapper').on('keydown', '.meeting-url', function (event, msg) { $('.center-panel-wrapper').on('keydown', '.meeting-url', function (event, msg) {
if(!event.ctrlKey) { if(!event.ctrlKey) {
event.preventDefault(); event.preventDefault();
@ -95,7 +95,15 @@
}); });
// enable tooltips // enable tooltips
$('[data-toggle="tooltip"]').tooltip() var options = {
selector: '.has-tooltip'
};
$(document).tooltip(options)
var options = {
selector: '.bottom-tooltip',
placement: 'bottom'
};
$(document).tooltip(options);
// enable popovers // enable popovers
var options = { var options = {

View File

@ -60,13 +60,16 @@ class @Recordings
if type == 'display' if type == 'display'
roomName = Meeting.getInstance().getId() roomName = Meeting.getInstance().getId()
published = row.published published = row.published
eye = getPublishClass(published) icon = getPublishClass(published)
return '<button type="button" class="btn btn-default recording-update" data-published="'+published+'">' + publishText = if published then 'publish' else 'unpublish'
'<i class="fa '+eye+'" aria-hidden="true"></i></button> ' + recordingActions = $('.hidden-elements').find('.recording-actions')
'<a tabindex="0" role="button" class="btn btn-default has-popover"' + recordingActions.find('.recording-update > i')
'data-toggle="popover" data-placement="top">' + .removeClass()
'<i class="fa fa-trash-o" aria-hidden="true"></i>' + .addClass('fa '+icon)
'</a>' recordingActions.find('.recording-update')
.attr('data-published', published)
.attr('title', I18n[publishText+'_recording'])
return recordingActions.html()
return data return data
} }
] ]

View File

@ -45,4 +45,13 @@
<span class="alert-message"></span> <span class="alert-message"></span>
</div> </div>
</div> </div>
<div class="recording-actions">
<button type="button" class="btn btn-default recording-update bottom-tooltip" data-published="">
<i class="fa" aria-hidden="true"></i>
</button>
<a tabindex="0" role="button" class="btn btn-default has-popover bottom-tooltip"
data-placement="top" title="<%= t('delete_recording') %>">
<i class="fa fa-trash-o" aria-hidden="true"></i>
</a>
</div>
</div> </div>

View File

@ -26,9 +26,11 @@ en-US:
are_you_sure: Are you sure? are_you_sure: Are you sure?
meeting_ended: Meeting was ended meeting_ended: Meeting was ended
meeting_started: Meeting was started meeting_started: Meeting was started
publish_recording: Publish recording
recording_deleted: Recording was deleted recording_deleted: Recording was deleted
recording_published: Recording was published recording_published: Recording was published
recording_unpublished: Recording was unpublished recording_unpublished: Recording was unpublished
unpublish_recording: Unpublish recording
copied: Copied copied: Copied
copy_error: Use Ctrl-c to copy copy_error: Use Ctrl-c to copy
date_recorded: Date Recorded date_recorded: Date Recorded
@ -50,6 +52,7 @@ en-US:
powered_bigbluebutton: Powered by BigBlueButton powered_bigbluebutton: Powered by BigBlueButton
presentation: Presentation presentation: Presentation
refresh_html: <a href="#" class="generate-link">Click refresh</a> to generate a new meeting URL refresh_html: <a href="#" class="generate-link">Click refresh</a> to generate a new meeting URL
delete_recording: Delete recording
session_url_explanation: The session will be taking place using the following URL session_url_explanation: The session will be taking place using the following URL
start: Start start: Start
start_new_session: Start a new session start_new_session: Start a new session