fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14849] activate save button


From: Sigurd Nes
Subject: [Fmsystem-commits] [14849] activate save button
Date: Thu, 17 Mar 2016 14:14:59 +0000

Revision: 14849
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14849
Author:   sigurdne
Date:     2016-03-17 14:14:58 +0000 (Thu, 17 Mar 2016)
Log Message:
-----------
activate save button

Modified Paths:
--------------
    trunk/property/inc/class.uilocation.inc.php
    trunk/property/templates/base/lookup.entity.xsl

Modified: trunk/property/inc/class.uilocation.inc.php
===================================================================
--- trunk/property/inc/class.uilocation.inc.php 2016-03-16 20:40:29 UTC (rev 
14848)
+++ trunk/property/inc/class.uilocation.inc.php 2016-03-17 14:14:58 UTC (rev 
14849)
@@ -1354,12 +1354,12 @@
                                                                formatter = 
function (dummy1, dummy2, oData) {
                                                                try {
                                                                        var ret 
= {$uicols['formatter'][$k]}('{$uicols['name'][$k]}', oData);
-                                       }
+                                                               }
                                                                catch(err) {
                                                                        return 
err.message;
-                                       }
+                                                               }
                                                                return ret;
-                               }
+                                                       }
 JS;
                                                }
                                                if 
(in_array($uicols['name'][$k], $searc_levels))
@@ -1368,12 +1368,12 @@
                                                                formatter = 
function (dummy1, dummy2, oData) {
                                                                try {
                                                                        var ret 
= JqueryPortico.searchLink('{$uicols['name'][$k]}', oData);
-                               }
+                                                               }
                                                                catch(err) {
                                                                        return 
err.message;
-                       }
+                                                               }
                                                                return ret;
-                       }
+                                                       }
 JS;
                                                }
                                                if ($uicols['name'][$k] == 
'loc1')
@@ -1382,12 +1382,12 @@
                                                                formatter = 
function (dummy1, dummy2, oData) {
                                                                try {
                                                                        var ret 
= JqueryPortico.searchLink('{$uicols['name'][$k]}', oData);
-                       }
+                                                               }
                                                                catch(err) {
                                                                        return 
err.message;
-                       }
+                                                               }
                                                                return ret;
-                       }
+                                                       }
 JS;
                                                        $params['sortable'] = 
true;
                                                }
@@ -1577,6 +1577,7 @@
                                        (
                                        'my_name' => 'save',
                                        'type' => 'custom',
+                                       'className' => 'save',
                                        'custom_code' => $code,
                                        'text' => lang('save')
                                );

Modified: trunk/property/templates/base/lookup.entity.xsl
===================================================================
--- trunk/property/templates/base/lookup.entity.xsl     2016-03-16 20:40:29 UTC 
(rev 14848)
+++ trunk/property/templates/base/lookup.entity.xsl     2016-03-17 14:14:58 UTC 
(rev 14849)
@@ -463,8 +463,15 @@
                                                                                
                        <xsl:when test="type = 'custom'">
                                                                                
                                ,{
                                                                                
                                        text: "<xsl:value-of select="text"/>",
-                                                                               
                                        enabled: false,
-                                                                               
                                        className: 'record',
+                                                                               
                                        <xsl:choose>
+                                                                               
                                                <xsl:when test="className">
+                                                                               
                                                        className: 
"<xsl:value-of select="className"/>",
+                                                                               
                                                </xsl:when>
+                                                                               
                                                <xsl:otherwise>
+                                                                               
                                                        enabled: false,
+                                                                               
                                                        className: 'record',
+                                                                               
                                                </xsl:otherwise>
+                                                                               
                                        </xsl:choose>
                                                                                
                                        action: function (e, dt, node, config) {
                                                                                
                                                <xsl:if test="confirm_msg">
                                                                                
                                                        var confirm_msg = 
"<xsl:value-of select="confirm_msg"/>";
@@ -482,8 +489,15 @@
                                                                                
                        <xsl:otherwise>
                                                                                
                                ,{
                                                                                
                                        text: "<xsl:value-of select="text"/>",
-                                                                               
                                        enabled: false,
-                                                                               
                                        className: 'record',
+                                                                               
                                        <xsl:choose>
+                                                                               
                                                <xsl:when test="className">
+                                                                               
                                                        className: 
"<xsl:value-of select="className"/>",
+                                                                               
                                                </xsl:when>
+                                                                               
                                                <xsl:otherwise>
+                                                                               
                                                        enabled: false,
+                                                                               
                                                        className: 'record',
+                                                                               
                                                </xsl:otherwise>
+                                                                               
                                        </xsl:choose>
                                                                                
                                        action: function (e, dt, node, config) {
                                                                                
                                                var receiptmsg = [];
                                                                                
                                                var selected = fnGetSelected();




reply via email to

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