fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12328] adding functionality to color the cell - not


From: Alejandro
Subject: [Fmsystem-commits] [12328] adding functionality to color the cell - not yet finished
Date: Tue, 18 Nov 2014 00:10:07 +0000

Revision: 12328
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12328
Author:   nudrick
Date:     2014-11-18 00:10:04 +0000 (Tue, 18 Nov 2014)
Log Message:
-----------
adding functionality to color the cell - not yet finished

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        
2014-11-17 23:36:39 UTC (rev 12327)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl        
2014-11-18 00:10:04 UTC (rev 12328)
@@ -331,6 +331,26 @@
                        <xsl:for-each select="//datatable/field">
                                {
                                        data:                   "<xsl:value-of 
select="key"/>",
+                                       fnCreatedCell: function(nTd, sData, 
oData, iRow, iCol){
+                                               var priority = 
oData['priority'];
+                                               if(iCol == 0)
+                                               {
+                                                       if(priority == 1)
+                                                       {
+                                                               
$(nTd).css('background-color', '#da7a7a');
+                                                       }
+                                                       
+                                                       if(priority == 2)
+                                                       {
+                                                               
$(nTd).css('background-color', '#dababa');
+                                                       }
+                                       
+                                                       if(priority == 3)
+                                                       {
+                                                               
$(nTd).css('background-color', '#dadada');
+                                                       }
+                                               }
+                                       },
                                        class:                  "<xsl:value-of 
select="className"/>",
                                        orderable:              <xsl:value-of 
select="phpgw:conditional(not(sortable = 0), 'true', 'false')"/>,
                                        <xsl:choose>




reply via email to

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