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.25 -r1.37.2.26 --- lams_central/web/includes/javascript/groupDisplay.js 24 Oct 2016 14:55:28 -0000 1.37.2.25 +++ lams_central/web/includes/javascript/groupDisplay.js 25 Oct 2016 12:29:39 -0000 1.37.2.26 @@ -16,36 +16,36 @@ } refreshPrivateNotificationCount(); -} - + } + function selectOrganisation(newOrgId) { //remove active CSS class from the old org if (activeOrgId > 0) { $("#org-row-" + activeOrgId).removeClass("active"); $("#org-row-" + activeOrgId + " a>i").remove(); - } + } //add active CSS class $("#org-row-" + newOrgId).addClass("active"); $("#org-row-" + newOrgId + " a").append( "" ) activeOrgId = newOrgId; loadOrganisation(); - + //store last visited // TODO -} - + } + function loadOrganisation() { $("#org-container").load( - "displayGroup.do", - { - stateId : stateId, + "displayGroup.do", + { + stateId : stateId, orgId : activeOrgId - }, - function() { + }, + function() { initButtons("org-container"); - } + } ); } @@ -581,9 +581,9 @@ function showAuthoringDialog(learningDesignID){ showDialog('dialogAuthoring', { - 'height' : $(window).height() - 40, + 'height' : Math.max(300, $(window).height() - 40), 'width' : 1280, - 'title' : 'Authoring', + 'title' : LABELS.AUTHORING_TITLE, 'beforeClose' : function(){ // if LD was modified, ask the user if he really wants to exit var innerLib = $('iframe', this)[0].contentWindow.GeneralLib,