CC-1809 added a dialog to display show contents, anyone has access to this dialog. made sure only hosts can access schedule/clear/delete options on the context menu for future shows.
This commit is contained in:
parent
567335c72f
commit
2cdaf4b413
7 changed files with 97 additions and 58 deletions
|
@ -57,9 +57,6 @@ function viewDisplay( view ) {
|
|||
}
|
||||
|
||||
function eventRender(event, element, view) {
|
||||
//element.qtip({
|
||||
// content: event.description
|
||||
// });
|
||||
|
||||
if(view.name === 'agendaDay' || view.name === 'agendaWeek') {
|
||||
var div = $('<div/>');
|
||||
|
@ -109,6 +106,19 @@ function eventAfterRender( event, element, view ) {
|
|||
[{get:"/Schedule/make-context-menu/format/json/id/#id#/start/#start#/end/#end#"}],
|
||||
{id: event.id, start: getStartTS, end: getEndTS},
|
||||
{xposition: "mouse", yposition: "mouse"});
|
||||
|
||||
/*
|
||||
$(element).qtip({
|
||||
content: {
|
||||
text: event.description,
|
||||
title: { text: 'Show Description' }
|
||||
},
|
||||
position: {
|
||||
target: 'mouse',
|
||||
adjust: { mouse: true }
|
||||
}
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
function eventClick(event, jsEvent, view) {
|
||||
|
|
|
@ -165,6 +165,24 @@ function makeScheduleDialog(dialog, json) {
|
|||
setScheduleDialogEvents(dialog);
|
||||
}
|
||||
|
||||
function buildContentDialog(json){
|
||||
var dialog = $(json.dialog);
|
||||
|
||||
dialog.dialog({
|
||||
autoOpen: false,
|
||||
title: 'Show Contents',
|
||||
width: 1100,
|
||||
height: 500,
|
||||
modal: true,
|
||||
close: closeDialog,
|
||||
buttons: {"Ok": function() {
|
||||
dialog.remove();
|
||||
}}
|
||||
});
|
||||
|
||||
dialog.dialog('open');
|
||||
}
|
||||
|
||||
function buildScheduleDialog(json){
|
||||
var dialog = $(json.dialog);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue