From 3bf825b4e8632dd9004c82ef5900497f0d3562e7 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 2 Jul 2014 19:19:40 -0400 Subject: [PATCH] fixed tab selection glitch --- js/dashboard.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/dashboard.js b/js/dashboard.js index d7a5b7bd91c23..a11b45d6f1e4d 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -25,12 +25,13 @@ /******************************************************************************/ -var loadDashboardPanel = function(tab) { +var loadDashboardPanel = function(tab, q) { var tabButton = uDom('[data-dashboard-panel-url="' + tab + '"]'); if ( !tabButton ) { return; } - uDom('iframe').attr('src', tab); + q = q || ''; + uDom('iframe').attr('src', tab + q); uDom('.tabButton').toggleClass('selected', false); tabButton.toggleClass('selected', true); }; @@ -56,7 +57,7 @@ uDom.onLoad(function() { if ( !tab ) { tab = '3p-filters'; } - loadDashboardPanel(tab + '.html' + q); + loadDashboardPanel(tab + '.html', q); uDom('.tabButton').on('click', onTabClickHandler); });