MINOR Only refresh versions side panel on new tree selection if its visible - 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
This commit is contained in:
Ingo Schommer 2009-11-21 03:17:06 +00:00
parent d3172a0775
commit 62ff95892f

View File

@ -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