From 239c60d1328ef221421bdd1a9bc28467fbe4077a Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 6 May 2015 21:56:20 +0800 Subject: Bug 1161983: History navigation broken when using modal view --- extensions/BugModal/web/bug_modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/BugModal/web/bug_modal.js') diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index dba3abc85..9e7f5f8f9 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -506,7 +506,7 @@ $(function() { $('#attachments-add-btn') .click(function(event) { event.preventDefault(); - window.location.replace('attachment.cgi?bugid=' + BUGZILLA.bug_id + '&action=enter'); + window.location.href = 'attachment.cgi?bugid=' + BUGZILLA.bug_id + '&action=enter'; }); // take button @@ -605,7 +605,7 @@ $(function() { $('#vote-btn') .click(function(event) { event.preventDefault(); - window.location.replace('page.cgi?id=voting/user.html&bug_id=' + BUGZILLA.bug_id + '#vote_' + BUGZILLA.bug_id); + window.location.href = 'page.cgi?id=voting/user.html&bug_id=' + BUGZILLA.bug_id + '#vote_' + BUGZILLA.bug_id; }); // user-story -- cgit v1.2.3-24-g4f1b