Index: lams_central/web/includes/javascript/addLesson.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/addLesson.js,v diff -u -r1.7.2.10 -r1.7.2.11 --- lams_central/web/includes/javascript/addLesson.js 30 Nov 2016 16:20:56 -0000 1.7.2.10 +++ lams_central/web/includes/javascript/addLesson.js 30 Nov 2016 22:18:29 -0000 1.7.2.11 @@ -315,7 +315,10 @@ } function previewLesson(){ - var ldNode = tree.getHighlightedNode(); + var ldNode = tree.getHighlightedNode(), + popupWidth = 1280, + popupHeight = 720; + if (!ldNode || !ldNode.data.learningDesignId) { $('#ldNotChosenError').show(); doSelectTab(1); @@ -352,7 +355,7 @@ $('body').css('cursor', 'auto'); // open preview pop up window window.open(LAMS_URL + 'home.do?method=learner&mode=preview&lessonID='+lessonID,'Preview', - 'width=1280,height=720,resizable,status=yes'); + 'width=' + popupWidth + ',height=' + popupHeight + ',resizable,status=yes'); } }); @@ -632,4 +635,4 @@ var description = SPLIT_LEARNERS_DESCRIPTION.replace('[0]', instances).replace('[1]', learnerCount); $('#splitLearnersDescription').html(description); } -} \ No newline at end of file +}