mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-04 23:28:41 +02:00
MINOR Don't show status message for normal HTTP responses in BatchActions
This commit is contained in:
parent
ea4bbe594c
commit
e147971910
@ -224,8 +224,8 @@
|
|||||||
button.removeClass('loading');
|
button.removeClass('loading');
|
||||||
|
|
||||||
// status message
|
// status message
|
||||||
var msg = (xmlhttp.getResponseHeader('X-Status')) ? xmlhttp.getResponseHeader('X-Status') : xmlhttp.statusText;
|
var msg = xmlhttp.getResponseHeader('X-Status');
|
||||||
statusMessage(msg, (status == 'success') ? 'good' : 'bad');
|
if(msg) statusMessage(msg, (status == 'success') ? 'good' : 'bad');
|
||||||
},
|
},
|
||||||
success: function(data, status) {
|
success: function(data, status) {
|
||||||
var id;
|
var id;
|
||||||
|
Loading…
Reference in New Issue
Block a user