Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ENHANCEMENT Reloading current edit form after 'look for new files' in…

… AssetAdmin

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92819 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit f15e2d8da31c2216dfa9c6759d373adc9359e604 1 parent 615494f
@chillu chillu authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 javascript/AssetAdmin.js
View
8 javascript/AssetAdmin.js
@@ -49,6 +49,14 @@ var _HANDLER_FORMS = {
jQuery(this).attr('action'),
function() {
button.removeClass('loading');
+
+ // reload current
+ var currNode = $('#sitetree')[0].firstSelected();
+ if(currNode) {
+ var url = $(currNode).find('a').attr('href');
+ $('#Form_EditForm').concrete('ss').loadForm(url);
+ }
+
}
);
Please sign in to comment.
Something went wrong with that request. Please try again.