Index: lams_central/web/includes/javascript/authoring/authoringGeneral.js =================================================================== diff -u -rc273aea6f908193080903efb968a837967282832 -re93902daebd26642320182c15a0c9812b75c957d --- lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision c273aea6f908193080903efb968a837967282832) +++ lams_central/web/includes/javascript/authoring/authoringGeneral.js (.../authoringGeneral.js) (revision e93902daebd26642320182c15a0c9812b75c957d) @@ -484,10 +484,10 @@ } var isFolder = !ldNode.data.learningDesignId, title = prompt(LABELS.RENAME_TITLE_PROMPT + (isFolder ? LABELS.FOLDER : LABELS.SEQUENCE) - + ' "' + ldNode.label + '"'); + + ' "' + ldNode.data.label + '"'); // skip if no name or the same name was provided - if (!title || ldNode.label == title) { + if (!title || ldNode.data.label == title) { return; } if (!GeneralLib.validateName(title)) { @@ -496,7 +496,7 @@ } $.each(ldNode.parent.children, function(){ - if (this.label == title && (isFolder == (this.data.folderID != null))) { + if (this.data.label == title && (isFolder == (this.data.folderID != null))) { alert(isFolder ? LABELS.FOLDER_EXISTS_ERROR : LABELS.SEQUENCE_EXISTS_ERROR); title = null; return false; @@ -518,7 +518,7 @@ }, success : function(response) { if (isFolder) { - ldNode.label = title; + ldNode.data.label = title; ldNode.getLabelEl().innerHTML = title; } else { // refresh all opened folders in the tree