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:
Ingo Schommer 2009-11-21 02:35:54 +00:00
parent 081802e2d6
commit df79a947a3

View File

@ -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;
}