Browse files

MINOR Removed usage of deprecated ajaxLink() javascript method in Ass…

…etAdmin.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92597 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 081802e commit df79a947a3abb9436a55a2f529c5ad3b5afac8b9 @chillu chillu committed Nov 21, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 javascript/AssetAdmin.js
View
7 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;
}

0 comments on commit df79a94

Please sign in to comment.