mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Removed usage of deprecated ajaxLink() javascript method in AssetAdmin.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92597 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
081802e2d6
commit
df79a947a3
@ -451,7 +451,12 @@ Behaviour.register({
|
||||
|
||||
'#Form_EditForm_Files a.deletelink' : {
|
||||
onclick : function(event) {
|
||||
ajaxLink(this.href);
|
||||
// Send request
|
||||
new Ajax.Request(this.href + (this.href.indexOf("?") == -1 ? "?" : "&") + "ajax=1", {
|
||||
method : 'get',
|
||||
onSuccess : Ajax.Evaluator,
|
||||
onFailure : ajaxErrorHandler
|
||||
});
|
||||
Event.stop(event);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user