fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12703]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12703]
Date: Wed, 04 Feb 2015 22:17:09 +0000

Revision: 12703
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12703
Author:   nelson224
Date:     2015-02-04 22:17:08 +0000 (Wed, 04 Feb 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl

Modified: branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
===================================================================
--- branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl        
2015-02-04 15:33:13 UTC (rev 12702)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl        
2015-02-04 22:17:08 UTC (rev 12703)
@@ -209,16 +209,27 @@
                                        <select id="{$name}" name="{$name}">
                                                <xsl:for-each select="list">
                                                        <xsl:variable 
name="id"><xsl:value-of select="id"/></xsl:variable>
-                                                       <xsl:if test="id = 
'NEW'">
-                                                               <option 
value="{$id}" selected="selected">
-                                                                       
<xsl:value-of select="name"/>
-                                                               </option>
-                                                       </xsl:if>
-                                                       <xsl:if test="id != 
'NEW'">
-                                                               <option 
value="{$id}">
-                                                                       
<xsl:value-of select="name"/>
-                                                               </option>
-                                                       </xsl:if>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="id = 'NEW'">
+                                                                       <option 
value="{$id}" selected="selected">
+                                                                               
<xsl:value-of select="name"/>
+                                                                       
</option>
+                                                               </xsl:when>
+                                                               <xsl:otherwise>
+                                                                       
<xsl:choose>
+                                                                               
<xsl:when test="selected = 'selected'">
+                                                                               
        <option value="{$id}" selected="selected">
+                                                                               
                <xsl:value-of select="name"/>
+                                                                               
        </option>
+                                                                               
</xsl:when>
+                                                                               
<xsl:otherwise>
+                                                                               
        <option value="{$id}">
+                                                                               
                <xsl:value-of select="name"/>
+                                                                               
        </option>                                                               
                
+                                                                               
</xsl:otherwise>
+                                                                       
</xsl:choose>
+                                                               </xsl:otherwise>
+                                                       </xsl:choose>
                                                </xsl:for-each>
                                        </select>
                                        </td>




reply via email to

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