From 26785076ba1088f3edcae48c9703ca5822336a00 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 03:15:36 +0000 Subject: [PATCH] BUGFIX Don't reload the tree node if it is currently in selection-mode (in LeftAndMain_left.js) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92721 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain_left.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/javascript/LeftAndMain_left.js b/javascript/LeftAndMain_left.js index 4b60eba1..f7d88564 100755 --- a/javascript/LeftAndMain_left.js +++ b/javascript/LeftAndMain_left.js @@ -202,7 +202,9 @@ TreeNodeAPI.prototype = { var url = jQuery(this).find('a').attr('href'); if(url && url != '#') { jQuery('#sitetree').trigger('selectionchanged', {node: this}); - if($('sitetree').notify('SelectionChanged', this)) { + // don't get page if either event was cancelled, + // or the tree is currently in a selectable state. + if($('sitetree').notify('SelectionChanged', this) && !jQuery(this.tree).hasClass('multiselect')) { this.getPageFromServer(); } } else {