Index: lams_central/web/includes/javascript/main.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/Attic/main.js,v diff -u -r1.1.2.16 -r1.1.2.17 --- lams_central/web/includes/javascript/main.js 30 Nov 2016 16:20:56 -0000 1.1.2.16 +++ lams_central/web/includes/javascript/main.js 8 Dec 2016 14:36:07 -0000 1.1.2.17 @@ -404,40 +404,6 @@ } -function showNotificationsDialog(orgID, lessonID) { - // if screen is narrow, then it is much longer - var width = Math.max(380, Math.min(800, $(window).width() - 60)), - height = width < 798 ? 850 : 650; - height = Math.max(380, Math.min(height, $(window).height() - 30)); - - var id = "dialogNotifications" + (lessonID ? "Lesson" + lessonID : "Org" + orgID); - showDialog(id, { - 'data' : { - 'orgID' : orgID, - 'lessonID' : lessonID - }, - 'height': height, - 'width' : width, - 'title' : LABELS.EMAIL_NOTIFICATIONS_TITLE, - 'open' : function() { - var dialog = $(this), - lessonID = dialog.data('lessonID'); - // if lesson ID is given, use lesson view; otherwise use course view - if (lessonID) { - // load contents after opening the dialog - $('iframe', dialog).attr('src', LAMS_URL - + 'monitoring/emailNotifications.do?method=getLessonView&lessonID=' - + lessonID); - } else { - $('iframe', dialog).attr('src', LAMS_URL - + 'monitoring/emailNotifications.do?method=getCourseView&organisationID=' - + orgID); - } - } - }, true); -} - - function showPrivateNotificationsDialog(){ var notificationDialog = showDialog("dialogPrivateNotifications", { 'height': Math.max(380, Math.min(600, $(window).height() - 30)),