Index: lams_central/web/main.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/main.jsp,v
diff -u -r1.56 -r1.57
--- lams_central/web/main.jsp 15 Jan 2013 12:22:06 -0000 1.56
+++ lams_central/web/main.jsp 16 Jan 2013 11:17:17 -0000 1.57
@@ -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() {