Permalink
Browse files

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

…ions
  • Loading branch information...
chillu committed Mar 6, 2012
1 parent ea4bbe5 commit e147971910dab9b3d4b7d73c2f3482d3699525cb
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit e147971

Please sign in to comment.