fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12164] update disable tabs functionality


From: Alejandro
Subject: [Fmsystem-commits] [12164] update disable tabs functionality
Date: Mon, 13 Oct 2014 15:16:06 +0000

Revision: 12164
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12164
Author:   nudrick
Date:     2014-10-13 15:16:05 +0000 (Mon, 13 Oct 2014)
Log Message:
-----------
update disable tabs functionality

Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/inc/class.jquery.inc.php

Modified: branches/dev-syncromind/phpgwapi/inc/class.jquery.inc.php
===================================================================
--- branches/dev-syncromind/phpgwapi/inc/class.jquery.inc.php   2014-10-13 
15:11:32 UTC (rev 12163)
+++ branches/dev-syncromind/phpgwapi/inc/class.jquery.inc.php   2014-10-13 
15:16:05 UTC (rev 12164)
@@ -126,7 +126,7 @@
 
        public static function formvalidator_generate($modules = array()) {
                self::load_widget('validator');
-               $modules_js = '"' . implode(',', $modules) . '"';
+               $modules_js = '"' . implode(',', $modules) . '"';!
 
                $js = <<<JS
                             
@@ -159,16 +159,16 @@
                                $_function = " onclick=\"javascript: 
{$tab['function']};\"";
                        }
 
-                       if (empty($tab['link']) && empty($tab['function'])) {
+                       //Set disabled tabs
+                       //if (empty($tab['link']) && empty($tab['function'])) {
+                       if ($tab['disable'] == 1) {
                                $disabled[] = $i;
-                               $output .= <<<HTML
-                                               <li><a 
href="{$tab['link']}">{$label}</a></li>
+                       }
+                       
+                       $output .= <<<HTML
+                               <li><a 
href="{$tab['link']}"{$_function}>{$label}</a></li>
 HTML;
-                       } else {
-                               $output .= <<<HTML
-                                               <li><a 
href="{$tab['link']}"{$_function}>{$label}</a></li>
-HTML;
-                       }
+
                        $i++;
                }
                $selected = in_array($selection, $tab_map) ? 
$tab_map[$selection] : 0;




reply via email to

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