mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Updated errorMessage() call in ModelAdmin to actually show the message to the user. For example, 404s return messages of the form 'your search returned no results'
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63715 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e0d792837e
commit
f82dc14fb1
@ -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('Server Error', xhr.statusText, 'bad');
|
errorMessage(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