mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +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');
|
||||
|
||||
// status message
|
||||
var msg = (xmlhttp.getResponseHeader('X-Status')) ? xmlhttp.getResponseHeader('X-Status') : xmlhttp.statusText;
|
||||
statusMessage(msg, (status == 'success') ? 'good' : 'bad');
|
||||
var msg = xmlhttp.getResponseHeader('X-Status');
|
||||
if(msg) statusMessage(msg, (status == 'success') ? 'good' : 'bad');
|
||||
},
|
||||
success: function(data, status) {
|
||||
var id;
|
||||
|
Loading…
Reference in New Issue
Block a user