Skip to content

Commit

Permalink
BUGFIX Don't reload the tree node if it is currently in selection-mod…
Browse files Browse the repository at this point in the history
…e (in LeftAndMain_left.js)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92721 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Nov 21, 2009
1 parent a4ae359 commit 2678507
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascript/LeftAndMain_left.js
Expand Up @@ -202,7 +202,9 @@ TreeNodeAPI.prototype = {
var url = jQuery(this).find('a').attr('href'); var url = jQuery(this).find('a').attr('href');
if(url && url != '#') { if(url && url != '#') {
jQuery('#sitetree').trigger('selectionchanged', {node: this}); 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(); this.getPageFromServer();
} }
} else { } else {
Expand Down

0 comments on commit 2678507

Please sign in to comment.