BUGFIX Stop IE6/IE7 from redirecting in admin/assets after deleting multiple folders (fixes #5208)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101969 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-03-31 05:00:02 +00:00 committed by Sam Minnee
parent b055154586
commit f5be047b97
2 changed files with 6 additions and 4 deletions

View File

@ -650,7 +650,8 @@ JS;
}
$script .= "statusMessage('$message');";
echo $script;
return $script;
}
public function removefile(){
@ -662,7 +663,7 @@ JS;
}
$file->delete();
$file->destroy();
if(Director::is_ajax()) {
echo <<<JS
$('Form_EditForm_Files').removeFile($fileID);

View File

@ -432,7 +432,7 @@ var deletefolder = {
errorMessage('Error deleting pages', response);
}
});
$('deletepage').getElementsByTagName('button')[0].onclick();
} else {
@ -506,7 +506,8 @@ appendLoader(function () {
onsubmit: function(event) {
deletefolder.form_submit();
Event.stop(event);
}
return false;
}
}
});
Element.hide('Form_DeleteItemsForm');