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
This commit is contained in:
Ingo Schommer 2009-11-21 03:19:43 +00:00
parent 615494f123
commit f15e2d8da3

View File

@ -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);
}
}
);