mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
API CHANGE Removed ajaxErrorHandler() javascript method from LeftAndMain.js, and changed two known references to custom code
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92736 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3124388b4d
commit
758804eacf
@ -419,7 +419,7 @@ Behaviour.register({
|
||||
new Ajax.Request(this.href + (this.href.indexOf("?") == -1 ? "?" : "&") + "ajax=1", {
|
||||
method : 'get',
|
||||
onSuccess : Ajax.Evaluator,
|
||||
onFailure : ajaxErrorHandler
|
||||
onFailure : function(response) {errorMessage('Server Error', response);}
|
||||
});
|
||||
Event.stop(event);
|
||||
return false;
|
||||
|
@ -49,7 +49,7 @@ CommentTableField.prototype = {
|
||||
onComplete: function(){
|
||||
Effect.Fade(row);
|
||||
}.bind(this),
|
||||
onFailure: ajaxErrorHandler
|
||||
onFailure: function(response) {errorMessage('Server Error', response);}
|
||||
}
|
||||
);
|
||||
Event.stop(e);
|
||||
|
@ -389,18 +389,15 @@ var ss_MainLayout;
|
||||
// Backwards compatibility
|
||||
var statusMessage = function(text, type) {
|
||||
jQuery.noticeAdd({text: text, type: type});
|
||||
}
|
||||
};
|
||||
|
||||
var errorMessage = function(text) {
|
||||
jQuery.noticeAdd({text: text, type: 'error'});
|
||||
}
|
||||
|
||||
function ajaxErrorHandler(response) {
|
||||
errorMessage('Server Error', response);
|
||||
}
|
||||
};
|
||||
|
||||
returnFalse = function() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Find and enable TinyMCE on all htmleditor fields
|
||||
@ -409,4 +406,4 @@ returnFalse = function() {
|
||||
|
||||
function nullConverter(url) {
|
||||
return url;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user