Fix header showing multiple times when context switching
This commit is contained in:
parent
cdd13f8a33
commit
9e9bbfad62
|
@ -60,7 +60,9 @@ module.exports.pluginHandler = function (parent) {
|
||||||
};
|
};
|
||||||
obj.registerPluginTab = function(pluginRegInfo) {
|
obj.registerPluginTab = function(pluginRegInfo) {
|
||||||
var d = pluginRegInfo();
|
var d = pluginRegInfo();
|
||||||
QA('p19headers', '<span onclick="return pluginHandler.callPluginPage(\\''+d.tabId+'\\');">'+d.tabTitle+'</span>');
|
if (!Q(d.tabId)) {
|
||||||
|
QA('p19headers', '<span onclick="return pluginHandler.callPluginPage(\\''+d.tabId+'\\');">'+d.tabTitle+'</span>');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
obj.callPluginPage = function(id) {
|
obj.callPluginPage = function(id) {
|
||||||
var pages = Q('p19pages').querySelectorAll("#p19pages>div");
|
var pages = Q('p19pages').querySelectorAll("#p19pages>div");
|
||||||
|
|
Loading…
Reference in New Issue