fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16061] set active tab info


From: sigurdne
Subject: [Fmsystem-commits] [16061] set active tab info
Date: Fri, 9 Dec 2016 09:49:12 +0000 (UTC)

Revision: 16061
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16061
Author:   sigurdne
Date:     2016-12-09 09:49:11 +0000 (Fri, 09 Dec 2016)
Log Message:
-----------
set active tab info

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.jquery.inc.php

Modified: trunk/phpgwapi/inc/class.jquery.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.jquery.inc.php     2016-12-08 10:20:39 UTC (rev 
16060)
+++ trunk/phpgwapi/inc/class.jquery.inc.php     2016-12-09 09:49:11 UTC (rev 
16061)
@@ -472,11 +472,19 @@
                                        collapsible: 'accordion',
                                        setHash: true,
                                        activate: function(e, tab) {
-                                               $('.info').html('Tab <strong>' 
+ tab.id + '</strong> activated!');
+                                               if(tab.disabled == false)
+                                               {
+                                                       var selector = 
tab.selector;
+                                                       var active_tab = 
selector.replace("#", '');
+
+                                                       if (typeof set_tab === 
"function")
+                                                       {
+                                                               
set_tab(active_tab);
+                                                       }
+                                               }
                                        }
 
                                });
-
                                $('#{$tab_set}').responsiveTabs('activate', 
{$selected});
 
                        };




reply via email to

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