Index: lams_central/conf/language/lams/ApplicationResources.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_central/conf/language/lams/ApplicationResources.properties,v
diff -u -r1.138.2.45 -r1.138.2.46
--- lams_central/conf/language/lams/ApplicationResources.properties 21 Dec 2016 16:57:02 -0000 1.138.2.45
+++ lams_central/conf/language/lams/ApplicationResources.properties 2 Jan 2017 08:58:11 -0000 1.138.2.46
@@ -544,6 +544,7 @@
authoring.fla.save.sequence.title.prompt =Please enter a title for the sequence
authoring.fla.import.part.choose.prompt =Click on activities to choose them for import
authoring.fla.folder.not.selected.error =Please choose a folder
+authoring.fla.folder.can.not.save.error =You can not save in this folder
authoring.fla.title.validation.error =The title can not contain any of these characters < > ^ * @ % $
authoring.fla.folder.exists.error =A folder with this name already exists.
authoring.fla.sequence.exists.error =A sequence with this name already exists.
Index: lams_central/web/authoring/authoring.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/authoring/authoring.jsp,v
diff -u -r1.6.2.46 -r1.6.2.47
--- lams_central/web/authoring/authoring.jsp 20 Dec 2016 09:19:29 -0000 1.6.2.46
+++ lams_central/web/authoring/authoring.jsp 2 Jan 2017 08:58:11 -0000 1.6.2.47
@@ -110,6 +110,8 @@
LIVEEDIT_CANCEL_CONFIRM : '',
FOLDER_NOT_SELECTED_ERROR : decoderDiv.html('').text(),
+
+ FOLDER_CAN_NOT_SAVE_ERROR : decoderDiv.html('').text(),
TITLE_VALIDATION_ERROR : decoderDiv.html('').text(),
Index: lams_central/web/includes/javascript/authoring/authoringGeneral.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/authoring/authoringGeneral.js,v
diff -u -r1.51.2.61 -r1.51.2.62
--- lams_central/web/includes/javascript/authoring/authoringGeneral.js 29 Dec 2016 09:59:12 -0000 1.51.2.61
+++ lams_central/web/includes/javascript/authoring/authoringGeneral.js 2 Jan 2017 08:58:11 -0000 1.51.2.62
@@ -559,6 +559,10 @@
if (node) {
// get folder from LD tree
folderNode = node.data.learningDesignId ? node.parent : node;
+ if (!folderNode.data.canSave) {
+ alert(LABELS.FOLDER_CAN_NOT_SAVE_ERROR);
+ return;
+ }
folderID = folderNode.data.folderID;
} else {
// get data from "recently used sequences" list
Index: lams_central/web/includes/javascript/authoring/authoringMenu.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/authoring/authoringMenu.js,v
diff -u -r1.34.2.27 -r1.34.2.28
--- lams_central/web/includes/javascript/authoring/authoringMenu.js 23 Dec 2016 01:35:44 -0000 1.34.2.27
+++ lams_central/web/includes/javascript/authoring/authoringMenu.js 2 Jan 2017 08:58:11 -0000 1.34.2.28
@@ -374,7 +374,8 @@
'label' : this.isRunSequencesFolder ?
LABELS.RUN_SEQUENCES_FOLDER : this.name,
'folderID' : this.folderID,
- 'canModify' : this.canModify
+ 'canSave' : !this.isRunSequencesFolder,
+ 'canModify' : this.canModify
});
});
}