followup to #16228: [Feature] TCA tree
authorSteffen Kamper <info@sk-typo3.de>
Thu, 4 Nov 2010 10:12:06 +0000 (10:12 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Thu, 4 Nov 2010 10:12:06 +0000 (10:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9272 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/js/extjs/tree/tree.js

index d1538da..7fa3f7b 100644 (file)
@@ -190,7 +190,7 @@ TYPO3.Components.Tree.TcaCheckChangeHandler = function(checkedNode, checked) {
        this.suspendEvents();
 
        if (this.tcaExclusiveKeys.length) {
-               if (checked = true && exclusiveKeys.indexOf(uid) > -1) {
+               if (checked === true && exclusiveKeys.indexOf(uid) > -1) {
                                // this key is exclusive, so uncheck all others
                        this.root.cascade(function(node) {
                                if (node !== checkedNode && node.attributes.checked) {
@@ -199,7 +199,7 @@ TYPO3.Components.Tree.TcaCheckChangeHandler = function(checkedNode, checked) {
                                }
                        });
                        this.exclusiveSelectedKey = uid;
-               } else if (checked = true && exclusiveKeys.indexOf(uid) === -1 && !Ext.isEmpty(this.exclusiveSelectedKey)) {
+               } else if (checked === true && exclusiveKeys.indexOf(uid) === -1 && !Ext.isEmpty(this.exclusiveSelectedKey)) {
                                // this key is exclusive, so uncheck all others
                        this.root.cascade(function(node) {
                                if (exclusiveKeys.indexOf('' + node.attributes.uid) > -1) {