Skip to content

Commit

Permalink
fixed tab selection glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jul 2, 2014
1 parent b63995e commit 3bf825b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand All @@ -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);
});

Expand Down

0 comments on commit 3bf825b

Please sign in to comment.