Index: lams_central/web/main.jsp =================================================================== diff -u -r7abac347cede2ecdc3059eb0ca5855b6679f72bd -r4f284603a74199f14d9eb0d5e1cc04b89755ba31 --- lams_central/web/main.jsp (.../main.jsp) (revision 7abac347cede2ecdc3059eb0ca5855b6679f72bd) +++ lams_central/web/main.jsp (.../main.jsp) (revision 4f284603a74199f14d9eb0d5e1cc04b89755ba31) @@ -58,6 +58,7 @@ function closeAddLessonDialog(refresh) { $('#addLessonFrame').attr('src', null); + // was the dialog just closed or a new lesson really added? if latter, refresh the list $("#addLessonDialog").dialog('option', 'refresh', refresh ? true : false) .dialog('close'); } @@ -109,7 +110,7 @@ 'hide' : 'fold', 'open' : function(){ // load contents after opening the dialog - $('#addLessonFrame').attr('src', 'home.do?method=newLesson&organisationID=' + $('#addLessonFrame').attr('src', 'home.do?method=addLesson&organisationID=' + $(this).dialog('option', 'orgID')); }, 'close' : function() {