Skip to content

Commit 3bf825b

Browse files
committed
fixed tab selection glitch
1 parent b63995e commit 3bf825b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

js/dashboard.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525

2626
/******************************************************************************/
2727

28-
var loadDashboardPanel = function(tab) {
28+
var loadDashboardPanel = function(tab, q) {
2929
var tabButton = uDom('[data-dashboard-panel-url="' + tab + '"]');
3030
if ( !tabButton ) {
3131
return;
3232
}
33-
uDom('iframe').attr('src', tab);
33+
q = q || '';
34+
uDom('iframe').attr('src', tab + q);
3435
uDom('.tabButton').toggleClass('selected', false);
3536
tabButton.toggleClass('selected', true);
3637
};
@@ -56,7 +57,7 @@ uDom.onLoad(function() {
5657
if ( !tab ) {
5758
tab = '3p-filters';
5859
}
59-
loadDashboardPanel(tab + '.html' + q);
60+
loadDashboardPanel(tab + '.html', q);
6061
uDom('.tabButton').on('click', onTabClickHandler);
6162
});
6263

0 commit comments

Comments
 (0)