From df79a947a3abb9436a55a2f529c5ad3b5afac8b9 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:35:54 +0000 Subject: [PATCH] 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 --- javascript/AssetAdmin.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/javascript/AssetAdmin.js b/javascript/AssetAdmin.js index 0a28abbe..f5a81fa3 100755 --- a/javascript/AssetAdmin.js +++ b/javascript/AssetAdmin.js @@ -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; }