fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12714] customize select all/none to check checkboxes


From: Sigurd Nes
Subject: [Fmsystem-commits] [12714] customize select all/none to check checkboxes
Date: Fri, 06 Feb 2015 19:16:03 +0000

Revision: 12714
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12714
Author:   sigurdne
Date:     2015-02-06 19:16:03 +0000 (Fri, 06 Feb 2015)
Log Message:
-----------
customize select all/none to check checkboxes

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-06 11:47:13 UTC (rev 12713)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl        
2015-02-06 19:16:03 UTC (rev 12714)
@@ -492,8 +492,32 @@
                                                                                
                "sButtonText": "Operation",
                                                                                
                "aButtons": [
                                                                                
                        'copy',
-                                                                               
                        "select_all",
-                                                                               
                        "select_none"
+                                                                               
                                {
+                                                                               
                                        sExtends: 'select_all',
+                                                                               
                                        //sButtonText: 'Select All',
+                                                                               
                                        fnClick: function (nButton, oConfig, 
oFlash) {
+                                                                               
                                                
TableTools.fnGetInstance('datatable-container').fnSelectAll();
+                                                                               
                                                //In case there are checkboxes
+                                                                               
                                                $(".mychecks").each(function()
+                                                                               
                                                {
+                                                                               
                                                         
$(this).prop("checked", true);
+                                                                               
                                                });
+
+                                                                               
                                        }
+                                                                               
                                },
+                                                                               
                            {
+                                                                               
                                        sExtends: 'select_none',
+                                                                               
                                        //sButtonText: 'Select None',
+                                                                               
                                        fnClick: function (nButton, oConfig, 
oFlash) {
+                                                                               
                                                
TableTools.fnGetInstance('datatable-container').fnSelectNone();
+                                                                               
                                                //In case there are checkboxes
+                                                                               
                                                $(".mychecks").each(function()
+                                                                               
                                                {
+                                                                               
                                                         
$(this).prop("checked", false);
+                                                                               
                                                });
+
+                                                                               
                                        }
+                                                                               
                                }
                                                                                
                <xsl:choose>
                                                                                
                                <xsl:when test="download">
                                                                                
                        ,{




reply via email to

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