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.js3
-rw-r--r--extensions/BugModal/web/new_bug.js4
2 files changed, 3 insertions, 4 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index a4ae83d72..c15174c8b 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -448,7 +448,7 @@ $(function() {
$('#action-history')
.click(function(event) {
event.preventDefault();
- document.location.href = 'show_activity.cgi?id=' + BUGZILLA.bug_id;
+ window.open(`show_activity.cgi?id=${BUGZILLA.bug_id}`, '_blank');
});
// use scrollTo for in-page activity links
@@ -1323,7 +1323,6 @@ $(function() {
// finally switch to edit mode if we navigate back to a page that was editing
$(window).on('pageshow', restoreEditMode);
$(window).on('pageshow', restoreSavedBugComment);
- $(window).on('focus', restoreSavedBugComment);
restoreEditMode();
restoreSavedBugComment();
});
diff --git a/extensions/BugModal/web/new_bug.js b/extensions/BugModal/web/new_bug.js
index 9c1d00854..23fc842cb 100644
--- a/extensions/BugModal/web/new_bug.js
+++ b/extensions/BugModal/web/new_bug.js
@@ -33,7 +33,7 @@ var component_load = function(product) {
function() {
alert("Network issues. Please refresh the page and try again");
}
- );
+ );
}
$(document).ready(function() {
@@ -101,7 +101,7 @@ $(document).ready(function() {
callback(initial.keywords);
}
});
-
+
$("#product").on("change", function () {
component_load($("#product").val());
});