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