Skip to content

Commit

Permalink
MINOR Removed usage of deprecated ajaxLink() javascript method in Ass…
Browse files Browse the repository at this point in the history
…etAdmin.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92597 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Nov 21, 2009
1 parent 081802e commit df79a94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion javascript/AssetAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit df79a94

Please sign in to comment.