Minor bugfix to AJAX Pagetree
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Mon, 5 Feb 2007 09:41:41 +0000 (09:41 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Mon, 5 Feb 2007 09:41:41 +0000 (09:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1995 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/tree.js

index 4296dfc..ec17fc2 100755 (executable)
@@ -52,8 +52,9 @@ var Tree = {
                // without waiting for the response
                if (!isExpand) {
                        $(obj.parentNode.getElementsByTagName('ul')[0]).remove();
-                       var pm = $(obj.parentNode).getElementsByClassName('pm')[0].firstChild;
-                       pm.src = pm.src.replace('minus', 'plus');
+                       var pm = $(obj.parentNode).getElementsByClassName('pm')[0];
+                       pm.onclick = function() {};
+                       pm.firstChild.src = pm.firstChild.src.replace('minus', 'plus');
                } else {
                        obj.style.cursor = 'wait';
                }