fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13211]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13211]
Date: Fri, 15 May 2015 19:55:20 +0000

Revision: 13211
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13211
Author:   nelson224
Date:     2015-05-15 19:55:19 +0000 (Fri, 15 May 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/templates/base/wo_hour.index.xsl

Modified: branches/dev-syncromind/property/templates/base/wo_hour.index.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/wo_hour.index.xsl   
2015-05-15 19:54:58 UTC (rev 13210)
+++ branches/dev-syncromind/property/templates/base/wo_hour.index.xsl   
2015-05-15 19:55:19 UTC (rev 13211)
@@ -415,21 +415,19 @@
                                });
                        </xsl:if>
 
-                       <xsl:for-each select="//top-toolbar/fields/field">
-                               <xsl:if test="type = 'button'">
-                                       $('#<xsl:value-of 
select="id"/>').click( function() 
-                                       {
-                                               var sUrl = '<xsl:value-of 
select="url"/>';
-                                               window.open(sUrl,'_self');
-                                       });
-                               </xsl:if>
-                       </xsl:for-each>
-
                        <xsl:for-each select="//down-toolbar/fields/field">
                                <xsl:if test="type = 'button'">
                                        $('#<xsl:value-of 
select="id"/>').click( function() 
                                        {
                                                var sUrl = '<xsl:value-of 
select="url"/>';
+                                               var params = <xsl:value-of 
select="params"/>;
+                                               $.each(params, function(i, 
item) 
+                                               {
+                                                       
if($("#"+item.obj).is(':checked')) 
+                                                       {
+                                                               sUrl += '&amp;' 
+ item.param + '=' + 1;
+                                                       }
+                                               });                             
        
                                                window.open(sUrl,'_self');
                                        });
                                </xsl:if>




reply via email to

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