Index: lams_central/web/includes/javascript/groupDisplay.js =================================================================== diff -u -rac8fb651dd7ba8d8986c4d65523121d7fd690141 -r3c1b1bec11c4d2647097674201492bed801c1c0d --- lams_central/web/includes/javascript/groupDisplay.js (.../groupDisplay.js) (revision ac8fb651dd7ba8d8986c4d65523121d7fd690141) +++ lams_central/web/includes/javascript/groupDisplay.js (.../groupDisplay.js) (revision 3c1b1bec11c4d2647097674201492bed801c1c0d) @@ -233,6 +233,7 @@ 'height' : 600, 'width' : 850, 'modal' : true, + 'resizable' : true, 'title' : LABELS.SINGLE_ACTIVITY_LESSON_TITLE, 'open' : function() { var dialog = $(this), @@ -263,7 +264,7 @@ } }); } - }); + }, true); } @@ -382,6 +383,15 @@ 'width' : 1280, 'resizable' : true, 'title' : 'Authoring', + 'beforeClose' : function(){ + // if LD was modified, ask the user if he really wants to exit + var canClose = $('iframe', this)[0].contentWindow.GeneralLib.canClose(); + if (canClose || confirm(LABELS.NAVIGATE_AWAY_CONFIRM)) { + $('iframe', this).attr('src', null); + } else { + return false; + } + }, 'open' : function() { var orgID = $(this).dialog('option', 'orgID'); // load contents after opening the dialog