phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/js/tabs tabs.js


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/js/tabs tabs.js
Date: Fri, 23 Mar 2007 16:01:06 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   07/03/23 16:01:06

Modified files:
        js/tabs        : tabs.js 

Log message:
        configurable active tab

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/tabs/tabs.js?cvsroot=phpgwapi&r1=1.3&r2=1.4

Patches:
Index: tabs.js
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/js/tabs/tabs.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- tabs.js     3 Sep 2006 03:39:07 -0000       1.3
+++ tabs.js     23 Mar 2007 16:01:06 -0000      1.4
@@ -43,8 +43,9 @@
  * @argument tabPageKey URL parameter name to use for setting/getting the 
actual tab
  * @argument callBack a callback function when the tab is changed - function 
must take 1 arg, the id of the new tab
  */
-function 
Tabs(nrTabs,activeCSSclass,inactiveCSSclass,HTMLtabID,HTMLtabcontentID,HTMLtabselectorID,HTMLtabradioID,tabPageKey,
 callBack)
+function 
Tabs(nrTabs,activeCSSclass,inactiveCSSclass,HTMLtabID,HTMLtabcontentID,HTMLtabselectorID,HTMLtabradioID,tabPageKey,
 callBack,tabnr)
 {
+       this.tabnr              = tabnr;
        this.nrTabs             = nrTabs;
        this.activeCSSclass     = activeCSSclass;
        this.inactiveCSSclass   = inactiveCSSclass;
@@ -78,6 +79,11 @@
        */
        function setActive(tabnr)
        {
+               if(this.tabnr > 0)
+               {
+                       tabnr = this.tabnr;
+                       this.tabnr = false;
+               }
                if ((tabnr > 0) && (tabnr <= self.nrTabs))
                {
                        self._replaceClass( self.HTMLtabID + tabnr, 
self.inactiveCSSclass, self.activeCSSclass);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]