MINOR Don't show status message for normal HTTP responses in BatchActions

This commit is contained in:
Ingo Schommer 2012-03-06 21:36:16 +01:00
parent ea4bbe594c
commit e147971910

View File

@ -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;