Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ions
  • Loading branch information...
commit e147971910dab9b3d4b7d73c2f3482d3699525cb 1 parent ea4bbe5
@chillu chillu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/javascript/LeftAndMain.BatchActions.js
View
4 admin/javascript/LeftAndMain.BatchActions.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.