From 40d9d82840490d06fcdbf5c594cd43ea7c32f5fc Mon Sep 17 00:00:00 2001 From: Sudheesh Singanamalla Date: Tue, 6 Sep 2016 15:28:38 +0530 Subject: [PATCH] Fixes #12470 Stores tab_id hash into a variable instead of location.hash Signed-off-by: Sudheesh Singanamalla --- js/config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/config.js b/js/config.js index 6630dd6c7c..d3d0c5f840 100644 --- a/js/config.js +++ b/js/config.js @@ -588,8 +588,9 @@ function setTab(tab_id) } $this.find('li').removeClass('active').find('a[href=#' + tab_id + ']').parent().addClass('active'); $this.parent().find('div.tabs_contents fieldset').hide().filter('#' + tab_id).show(); - location.hash = 'tab_' + tab_id; - $this.parent().find('input[name=tab_hash]').val(location.hash); + var hashValue = 'tab_' + tab_id; + location.hash = hashValue; + $this.parent().find('input[name=tab_hash]').val(hashValue); }); }