From 87fd7d1d057fd26be2c6419c2b0217b8c1cffd1c Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Wed, 25 Aug 2004 20:57:31 +0000 Subject: [PATCH] fix for Bug: [ 1009099 ] Unable To Add Project --- phpgwapi/js/tabs/tabs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/tabs/tabs.js b/phpgwapi/js/tabs/tabs.js index eb36b02c25..1e198e67dc 100644 --- a/phpgwapi/js/tabs/tabs.js +++ b/phpgwapi/js/tabs/tabs.js @@ -223,7 +223,8 @@ function Tabs(nrTabs,activeCSSclass,inactiveCSSclass,HTMLtabID,HTMLtabcontentID, else { // getting the active tab from the selector if set - if(document.getElementById(this.HTMLtabselectorID)) + // the check for != '' is needed for Konqueror + if(document.getElementById(this.HTMLtabselectorID) && this.HTMLtabselectorID != '') tab = document.getElementById(this.HTMLtabselectorID).selectedIndex+1; else tab = 1;