Permalink
Browse files

API CHANGE Removed ajaxErrorHandler() javascript method from LeftAndM…

…ain.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
  • Loading branch information...
1 parent 3124388 commit 758804eacf0a9956ddd392b3e2db4f141f1b0630 @chillu chillu committed Nov 21, 2009
Showing with 7 additions and 10 deletions.
  1. +1 −1 javascript/AssetAdmin.js
  2. +1 −1 javascript/CommentTableField.js
  3. +5 −8 javascript/LeftAndMain.js
@@ -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;
-}
+};

0 comments on commit 758804e

Please sign in to comment.