[BUGFIX] New EM - cannot save files with noEdit disabled
authorsteffenk <info@sk-typo3.de>
Sun, 6 Mar 2011 11:15:33 +0000 (12:15 +0100)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 7 Mar 2011 11:13:05 +0000 (12:13 +0100)
Due a typo the setting is not recognized correct.

Change-Id: I79a4308cefc6088500652f8dac29476379c6774c
Resolves: #M17811
Reviewed-on: http://review.typo3.org/1068
Reviewed-by: Steffen Kamper <info@sk-typo3.de>
Tested-by: Steffen Kamper <info@sk-typo3.de>
Reviewed-by: Stefano Kowalke <blueduck@gmx.net>
typo3/sysext/em/res/js/em_files.js

index 1dab552..3b2b516 100644 (file)
@@ -269,7 +269,7 @@ TYPO3.EM.ExtFilelist = Ext.extend(Ext.Panel, {
                                        }
                                }, {
                                        iconCls: 'x-btn-save',
-                                       tooltip: TYPO3.settings.EM.fileAlloweSave ? TYPO3.lang.cmd_save : TYPO3.lang.ext_details_saving_disabled,
+                                       tooltip: TYPO3.settings.EM.fileAllowSave ? TYPO3.lang.cmd_save : TYPO3.lang.ext_details_saving_disabled,
                                        ref: '../saveButton',
                                        disabled: true,
                                        scope: this,
@@ -761,7 +761,7 @@ TYPO3.EM.CodeMirror = Ext.extend(Ext.Panel, {
        },
 
        changeAction: function(changed) {
-               if (TYPO3.settings.EM.fileAlloweSave && this.fileLoaded) {
+               if (TYPO3.settings.EM.fileAllowSave && this.fileLoaded) {
                        if (!changed) {
                                this.ownerCt.saveButton.disable();
                                this.ownerCt.diffButton.disable();