mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
23a7857c01
commit
926949e9cc
@ -276,7 +276,7 @@ $(document).ready(function() {
|
|||||||
statusMessage(xhr.statusText, "good");
|
statusMessage(xhr.statusText, "good");
|
||||||
$(this).each(callback, [response, status, xhr]);
|
$(this).each(callback, [response, status, xhr]);
|
||||||
} else {
|
} else {
|
||||||
statusMessage(xhr.statusText, "bad");
|
errorMessage('Server Error', xhr.statusText);
|
||||||
if(failureCallback) $(this).each(failureCallback, [response, status, xhr]);
|
if(failureCallback) $(this).each(failureCallback, [response, status, xhr]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user