fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12791]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12791]
Date: Tue, 24 Feb 2015 23:31:34 +0000

Revision: 12791
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12791
Author:   nelson224
Date:     2015-02-24 23:31:34 +0000 (Tue, 24 Feb 2015)
Log Message:
-----------


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-02-24 23:31:17 UTC (rev 12790)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl        
2015-02-24 23:31:34 UTC (rev 12791)
@@ -81,19 +81,43 @@
                                                        "sRowSelect": "multi",
                                                        "aButtons":
                                                                [
-                                                                       
"select_all",
-                                                                       
"select_none",
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="download">
                                                                                
{
                                                                                
        "sExtends": "download",
                                                                                
        "sButtonText": "Download",
                                                                                
        "sUrl": '<xsl:value-of select="download"/>'
-                                                                               
},
+                                                                               
}<xsl:value-of select="phpgw:conditional(not(position() = last()), ',', '')"/>
                                                                                
</xsl:when>
                                                                        
</xsl:choose>
                                                                        
<xsl:for-each select="$tabletools">
                                                                                
<xsl:choose>
+                                                                               
        <xsl:when test="my_name = 'select_all'">
+                                                                               
                {
+                                                                               
                        sExtends: 'select_all',
+                                                                               
                        fnClick: function (nButton, oConfig, oFlash) {
+                                                                               
                                TableTools.fnGetInstance('<xsl:value-of 
select="$container"/>').fnSelectAll();
+                                                                               
                                //In case there are checkboxes
+                                                                               
                                $(".mychecks").each(function()
+                                                                               
                                {
+                                                                               
                                         $(this).prop("checked", true);
+                                                                               
                                });
+                                                                               
                        }
+                                                                               
                }<xsl:value-of select="phpgw:conditional(not(position() = 
last()), ',', '')"/>                                                            
                              
+                                                                               
        </xsl:when>
+                                                                               
        <xsl:when test="my_name = 'select_none'">
+                                                                               
                {
+                                                                               
                        sExtends: 'select_none',
+                                                                               
                        fnClick: function (nButton, oConfig, oFlash) {
+                                                                               
                                TableTools.fnGetInstance('<xsl:value-of 
select="$container"/>').fnSelectNone();
+                                                                               
                                //In case there are checkboxes
+                                                                               
                                $(".mychecks").each(function()
+                                                                               
                                {
+                                                                               
                                         $(this).prop("checked", false);
+                                                                               
                                });
+                                                                               
                        }
+                                                                               
                }<xsl:value-of select="phpgw:conditional(not(position() = 
last()), ',', '')"/>                                                            
                              
+                                                                               
        </xsl:when>
                                                                                
        <xsl:when test="type = 'custom'">
                                                                                
                {
                                                                                
                        sExtends:               "select",




reply via email to

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