Index: lams_central/web/includes/javascript/main.js =================================================================== diff -u -r6e03312f31e3651711bc99047d26d9e51bac4933 -r2e6fc7e8ac72d08478858a62c4f84b9818c8c633 --- lams_central/web/includes/javascript/main.js (.../main.js) (revision 6e03312f31e3651711bc99047d26d9e51bac4933) +++ lams_central/web/includes/javascript/main.js (.../main.js) (revision 2e6fc7e8ac72d08478858a62c4f84b9818c8c633) @@ -414,32 +414,36 @@ function showMonitorLessonDialog(lessonID) { - - var id = "dialogMonitorLesson" + lessonID, - dialog = showDialog(id, { + var dialog = showDialog( + "dialogMonitorLesson", + { 'data' : { 'isMonitorDialog' : true, 'lessonID' : lessonID }, 'autoOpen' : false, - 'height': Math.max(380, Math.min(800, $(window).height() - 30)), - 'width' : Math.max(380, Math.min(1024, $(window).width() - 60)), - 'title' : LABELS.MONITORING_TITLE, + 'height': $(window).height(), + 'width' : "99.6%", + "top" : "-26px", + 'title' : "", + 'modal': true, 'open' : function() { // load contents after opening the dialog - $('iframe', this).attr('src', LAMS_URL - + 'home/monitorLesson.do?lessonID=' - + $(this).data('lessonID')); + $('iframe', this).attr('src', LAMS_URL + 'home/monitorLesson.do?lessonID=' + $(this).data('lessonID')); }, - - }, true, true); + }, + true, + true + ); // if it was just created if (dialog) { // tell the dialog contents that it was resized $('.modal-content', dialog).on('resizestop', resizeSequenceCanvas); // initial resize $('iframe', dialog).on('load', resizeSequenceCanvas); + //remove maximize button + $('.dialogMaximise', dialog).remove(); dialog.modal('show'); }