fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12613] allow optional data to inline tables


From: Sigurd Nes
Subject: [Fmsystem-commits] [12613] allow optional data to inline tables
Date: Fri, 16 Jan 2015 10:31:51 +0000

Revision: 12613
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12613
Author:   sigurdne
Date:     2015-01-16 10:31:50 +0000 (Fri, 16 Jan 2015)
Log Message:
-----------
allow optional data to inline tables

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

Modified: branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl
===================================================================
--- branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl        
2015-01-16 10:11:27 UTC (rev 12612)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl        
2015-01-16 10:31:50 UTC (rev 12613)
@@ -292,7 +292,18 @@
                {
                        options<xsl:number value="($num - 1)"/>.TableTools = 
JqueryPortico.TableTools<xsl:number value="($num - 1)"/>;
                }
-               oTable<xsl:number value="($num - 1)"/> = 
JqueryPortico.inlineTableHelper("<xsl:value-of select="$container"/>", 
<xsl:value-of select="$requestUrl"/>, columns, options<xsl:number value="($num 
- 1)"/> , <xsl:value-of select="$data"/>);
 
+               <xsl:variable name="dataset">
+                  <xsl:choose>
+                        <xsl:when test="$data !=''">
+                          <xsl:value-of select="$data" />
+                        </xsl:when>
+                         <xsl:otherwise>
+                                  <xsl:text>[]</xsl:text>
+                         </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:variable>
+
+                oTable<xsl:number value="($num - 1)"/> = 
JqueryPortico.inlineTableHelper("<xsl:value-of select="$container"/>", 
<xsl:value-of select="$requestUrl"/>, columns, options<xsl:number value="($num 
- 1)"/> , <xsl:value-of select="$dataset"/>);
        </script>
 </xsl:template>
\ No newline at end of file




reply via email to

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