diff options
author | Byron Jones <glob@mozilla.com> | 2015-10-15 17:59:10 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-10-15 17:59:10 +0200 |
commit | 2e2981d25c185fde56f29c7aed4e3e6bba50039e (patch) | |
tree | 725b4a4b7de9d444ce2b84e9cedce3dc8d7f7896 /extensions/BugModal/web | |
parent | 5265c09db899e148ceef6ba47aa199fa1e282e7b (diff) | |
download | bugzilla-2e2981d25c185fde56f29c7aed4e3e6bba50039e.tar.gz bugzilla-2e2981d25c185fde56f29c7aed4e3e6bba50039e.tar.xz |
Bug 1153101 - add hooks for edit-comments extension
Diffstat (limited to 'extensions/BugModal/web')
-rw-r--r-- | extensions/BugModal/web/bug_modal.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index a5867a971..a4ab7b69b 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -1281,8 +1281,10 @@ function bugzilla_ajax(request, done_fn, error_fn) { return $.ajax(request) .done(function(data) { if (data.error) { - $('#xhr-error').html(data.message); - $('#xhr-error').show('fast'); + if (!request.hideError) { + $('#xhr-error').html(data.message); + $('#xhr-error').show('fast'); + } if (error_fn) error_fn(data.message); } |