From 926949e9cc2856f068e3c67a7dadfce218dbe4f6 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 3 Oct 2008 16:24:39 +0000 Subject: [PATCH] ENHANCMENT Using errorMessage() instead of statusMessage('bad') for ModelAdmin.js git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63625 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/ModelAdmin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ModelAdmin.js b/javascript/ModelAdmin.js index 2504bb42..72ee1de4 100644 --- a/javascript/ModelAdmin.js +++ b/javascript/ModelAdmin.js @@ -276,7 +276,7 @@ $(document).ready(function() { statusMessage(xhr.statusText, "good"); $(this).each(callback, [response, status, xhr]); } else { - statusMessage(xhr.statusText, "bad"); + errorMessage('Server Error', xhr.statusText); if(failureCallback) $(this).each(failureCallback, [response, status, xhr]); } }