Index: lams_central/web/includes/javascript/groupDisplay.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/groupDisplay.js,v diff -u -r1.37.2.3 -r1.37.2.4 --- lams_central/web/includes/javascript/groupDisplay.js 20 May 2015 09:03:50 -0000 1.37.2.3 +++ lams_central/web/includes/javascript/groupDisplay.js 27 May 2015 06:23:54 -0000 1.37.2.4 @@ -149,68 +149,7 @@ } -/** - * Checks if the dialog is already opened. - * If not, creates a new dialog with the given ID and init parameters. - */ -function showDialog(id, initParams, extraButtons) { - var dialog = $('#' + id); - if (dialog.length > 0) { - // is it open already? - dialog.dialog('moveToTop'); - return; - } - - // create a new dialog by cloning a template - dialog = $('#dialogContainer').clone(); - dialog.attr('id', id); - - // use initParams to overwrite default behaviour of the newly created dialog - dialog.dialog($.extend({ - 'autoOpen' : true, - 'modal' : false, - 'draggable' : true, - 'resizable' : false, - 'hide' : 'fold', - 'beforeClose' : function(){ - $('iframe', this).attr('src', null); - }, - 'close' : function() { - // completely delete the dialog - $(this).remove(); - } - }, initParams)); - - if (extraButtons) { - dialog.dialogExtend({ - "closable" : true, - "maximizable" : true, - "minimizable" : true, - "collapsable" : true, - "dblclick" : "collapse", - "minimizeLocation" : "right", - "icons" : { - "close" : "ui-icon-close", - "maximize" : "ui-icon-arrow-4-diag", - "minimize" : "ui-icon-minus", - "collapse" : "ui-icon-triangle-1-s", - "restore" : "ui-icon-newwin" - } - }); - } - - return dialog; -} - -/** - * Focuses on the dialog. Called from within the contained iframe. - */ -function moveDialogToTop(id) { - $('#' + id).dialog('moveToTop'); -} - - function showMonitorLessonDialog(lessonID) { var id = "dialogMonitorLesson" + lessonID, dialog = showDialog(id, { @@ -441,6 +380,7 @@ showDialog('dialogFlashlessAuthoring', { 'height' : 865, 'width' : 1280, + 'resizable' : true, 'title' : 'Authoring', 'open' : function() { var orgID = $(this).dialog('option', 'orgID');