From 559936fa291defa7696d8e5cf99332f1364d9c1b Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 23 Sep 2005 16:26:26 +0000 Subject: [PATCH] make the settings of the active tab from the GET value working under IE6 too --- phpgwapi/js/tabs/tabs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/tabs/tabs.js b/phpgwapi/js/tabs/tabs.js index 1e198e67dc..b8ccc04122 100644 --- a/phpgwapi/js/tabs/tabs.js +++ b/phpgwapi/js/tabs/tabs.js @@ -199,10 +199,12 @@ function Tabs(nrTabs,activeCSSclass,inactiveCSSclass,HTMLtabID,HTMLtabcontentID, function init() { var tab = 0; - var regexp = new RegExp('(^|&)' + this.tabPageKey + '=[0-9]{1,2}'); + // this line is not working in IE 6 + //var regexp = new RegExp('(^|&)' + this.tabPageKey + '=[0-9]{1,2}'); + var regexp = new RegExp(this.tabPageKey + '=[0-9]{1,2}'); var urlparams = window.location.search; var urlparamstart = urlparams.search(regexp); - + // getting the active tab from the tabPageKey (url/get-var) if set if (this.tabPageKey && urlparamstart > -1) {