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.26 -r1.37.2.27 --- lams_central/web/includes/javascript/groupDisplay.js 25 Oct 2016 12:29:39 -0000 1.37.2.26 +++ lams_central/web/includes/javascript/groupDisplay.js 27 Oct 2016 04:36:20 -0000 1.37.2.27 @@ -211,7 +211,7 @@ }, 'modal' : true, 'height' : 740, - 'width' : 850, + 'width' : 'auto', 'title' : LABELS.ADD_LESSON_TITLE, 'open' : function() { var dialog = $(this); @@ -220,6 +220,7 @@ .attr('src', LAMS_URL + 'home.do?method=addLesson&organisationID=' + dialog.data('orgID')); + $(this).css("maxWidth", "850px").css("margin", "auto"); // in case of mobile devices allow iframe scrolling if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { @@ -285,14 +286,16 @@ }, 'modal' : true, 'height' : 460, - 'width' : 460, + 'width' : 'auto', 'title' : LABELS.COURSE_GROUPS_TITLE, 'open' : function() { // load contents after opening the dialog $('iframe', this) .attr('src', LAMS_URL + 'OrganisationGroup.do?method=viewGroupings&organisationID=' + $(this).data('orgID')); + $(this).css("maxWidth", "460px").css("margin", "auto"); + } }, true); } @@ -306,11 +309,12 @@ }, 'modal' : true, 'height' : 600, - 'width' : 850, + 'width' : 'auto', 'title' : LABELS.SINGLE_ACTIVITY_LESSON_TITLE, 'open' : function() { var dialog = $(this), toolID = dialog.data('toolID'); + $(this).css("maxWidth", "850px").css("margin", "auto"); $.ajax({ async : false, cache : false, @@ -361,7 +365,6 @@ + 'monitoring/emailNotifications.do?method=getLessonView&lessonID=' + lessonID); } else { - var orgID = dialog.dialog('option', 'orgID'); $('iframe', dialog).attr('src', LAMS_URL + 'monitoring/emailNotifications.do?method=getCourseView&organisationID=' + orgID);