Index: lams_central/web/includes/javascript/addLesson.js =================================================================== diff -u -r2708837c1330f2c5fd30195d17115eadc1264dca -r9091ed8c9bae9a48f88622c0c5031af2a39772dc --- lams_central/web/includes/javascript/addLesson.js (.../addLesson.js) (revision 2708837c1330f2c5fd30195d17115eadc1264dca) +++ lams_central/web/includes/javascript/addLesson.js (.../addLesson.js) (revision 9091ed8c9bae9a48f88622c0c5031af2a39772dc) @@ -360,12 +360,19 @@ // copy CKEditor contents to textarea for submit $('#introDescription').val(CKEDITOR.instances['introDescription'].getData()); + + //handle multiple lessons feature + if ($(".multiple-lessons:checked").length) { + //don't send main organisation's id to the server in case other multiple lessons are chosen + $("#organisation-id").prop("disabled", true); + } submitInProgress = true; $('#lessonForm').ajaxSubmit({ 'success' : function(){ window.parent.closeDialog('dialogAddLesson', true); - }}); + } + }); } function previewLesson(){ @@ -457,21 +464,29 @@ } generatingLearningDesign = true; + // iframe just to load Authoring for a single purpose, generate the SVG - $('