mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
d3172a0775
commit
62ff95892f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user