mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
fixed tab selection glitch
This commit is contained in:
parent
b63995e556
commit
3bf825b4e8
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue