summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BugModal/web')
-rw-r--r--extensions/BugModal/web/bug_modal.js6
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);
}