Permalink
Browse files

MINOR Only refresh versions side panel on new tree selection if its v…

…isible - regression from javascript refactoring, this was already the case in the old CMS logic

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92755 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
chillu committed Nov 21, 2009
1 parent d3172a0 commit 62ff95892f2cc712531afd0c0bd3c8c448eed162
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/CMSMain.js
View
@@ -345,7 +345,7 @@
// integrate with sitetree selection changes
jQuery('#sitetree').bind('selectionchanged', function(e, data) {
self.find(':input[name=ID]').val(data.node.getIdx());
- self.trigger('submit');
+ if(self.is(':visible')) self.trigger('submit');
});
// refresh when field is selected

0 comments on commit 62ff958

Please sign in to comment.