Permalink
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...
chillu committed Nov 21, 2009
1 parent 615494f commit f15e2d8da31c2216dfa9c6759d373adc9359e604
Showing with 8 additions and 0 deletions.
  1. +8 −0 javascript/AssetAdmin.js
View
@@ -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);
+ }
+
}
);

0 comments on commit f15e2d8

Please sign in to comment.