fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14698] more on buttons


From: Sigurd Nes
Subject: [Fmsystem-commits] [14698] more on buttons
Date: Thu, 04 Feb 2016 19:31:42 +0000

Revision: 14698
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14698
Author:   sigurdne
Date:     2016-02-04 19:31:41 +0000 (Thu, 04 Feb 2016)
Log Message:
-----------
more on buttons

Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl
    branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
    branches/dev-syncromind/property/setup/phpgw_no.lang
    branches/dev-syncromind/property/templates/base/lookup.entity.xsl

Modified: branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl
===================================================================
--- branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl        
2016-02-04 15:09:54 UTC (rev 14697)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_inline.xsl        
2016-02-04 19:31:41 UTC (rev 14698)
@@ -92,6 +92,8 @@
                                                                                
                                {
                                                                                
                                        $(this).prop("checked", true);
                                                                                
                                });
+                                                                               
                                var selectedRows = api.rows( { selected: true } 
).count();
+                                                                               
                                api.buttons( '.record' ).enable( selectedRows > 
0 );
                                                                                
                        }
                                                                                
                }<xsl:value-of select="phpgw:conditional(not(position() = 
last()), ',', '')"/>                                                            
                              
                                                                                
        </xsl:when>
@@ -105,6 +107,7 @@
                                                                                
                                {
                                                                                
                                        $(this).prop("checked", false);
                                                                                
                                });
+                                                                               
                                api.buttons( '.record' ).enable( false );
                                                                                
                        }
                                                                                
                }<xsl:value-of select="phpgw:conditional(not(position() = 
last()), ',', '')"/>                                                            
                              
                                                                                
        </xsl:when>

Modified: branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
===================================================================
--- branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl        
2016-02-04 15:09:54 UTC (rev 14697)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl        
2016-02-04 19:31:41 UTC (rev 14698)
@@ -580,28 +580,36 @@
                                //                                              
                                        return dt.i18n( 'buttons.show_hide', 
'Show / hide columns' );
                                //                                              
                                }
                                //                                              
                        },
-                               {
-                               text: "<xsl:value-of 
select="php:function('lang', 'select all')"/>",
-                               action: function () {
-                                               var api = oTable.api();
-                                               api.rows().select();
-                                               $(".mychecks").each(function()
+                               <xsl:choose>
+                                       <xsl:when test="select_all">
                                                {
-                                                       $(this).prop("checked", 
true);
-                                               });
-                                       }
-                               },
-                               {
-                               text: "<xsl:value-of 
select="php:function('lang', 'select none')"/>",
-                               action: function () {
-                                               var api = oTable.api();
-                                               api.rows().deselect();
-                                               $(".mychecks").each(function()
+                                               text: "<xsl:value-of 
select="php:function('lang', 'select all')"/>",
+                                               action: function () {
+                                                               var api = 
oTable.api();
+                                                               
api.rows().select();
+                                                               
$(".mychecks").each(function()
+                                                               {
+                                                                       
$(this).prop("checked", true);
+                                                               });
+                                                               var 
selectedRows = api.rows( { selected: true } ).count();
+                                                               api.buttons( 
'.record' ).enable( selectedRows > 0 );
+
+                                                       }
+                                               },
                                                {
-                                                       $(this).prop("checked", 
false);
-                                               });
-                                       }
-                               },
+                                               text: "<xsl:value-of 
select="php:function('lang', 'select none')"/>",
+                                               action: function () {
+                                                               var api = 
oTable.api();
+                                                               
api.rows().deselect();
+                                                               
$(".mychecks").each(function()
+                                                               {
+                                                                       
$(this).prop("checked", false);
+                                                               });
+                                                               api.buttons( 
'.record' ).enable( false );
+                                                       }
+                                               },
+                                       </xsl:when>
+                               </xsl:choose>
                                {
                                        extend: 'copy',
                                        text: "<xsl:value-of 
select="php:function('lang', 'copy')"/>"

Modified: branches/dev-syncromind/property/setup/phpgw_no.lang
===================================================================
--- branches/dev-syncromind/property/setup/phpgw_no.lang        2016-02-04 
15:09:54 UTC (rev 14697)
+++ branches/dev-syncromind/property/setup/phpgw_no.lang        2016-02-04 
19:31:41 UTC (rev 14698)
@@ -1509,7 +1509,8 @@
 select agreement       property        no      Velg avtale
 select agreement group property        no      Velg en avtale-gruppe
 select agreement_group property        no      Velg avtalegruppe
-select all     property        no      velg alle
+select all     property        no      Velg alle
+select none    property        no      Velg ingen
 select a location      property        no      velg en lokalisering
 select a location!     property        no      Velg en lokalisering
 select a value property        no      velg en verdi

Modified: branches/dev-syncromind/property/templates/base/lookup.entity.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/lookup.entity.xsl   
2016-02-04 15:09:54 UTC (rev 14697)
+++ branches/dev-syncromind/property/templates/base/lookup.entity.xsl   
2016-02-04 19:31:41 UTC (rev 14698)
@@ -377,6 +377,8 @@
                                                                                
                {
                                                                                
                        $(this).prop("checked", true);
                                                                                
                });
+                                                                               
                var selectedRows = api.rows( { selected: true } ).count();
+                                                                               
                api.buttons( '.record' ).enable( selectedRows > 0 );
                                                                                
        }
                                                                                
},
                                                                                
{
@@ -388,6 +390,7 @@
                                                                                
                {
                                                                                
                        $(this).prop("checked", false);
                                                                                
                });
+                                                                               
                api.buttons( '.record' ).enable( false );
                                                                                
        }
                                                                                
},
                                                                                
{




reply via email to

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