[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12330] adding functionality to color the cell
From: |
Alejandro |
Subject: |
[Fmsystem-commits] [12330] adding functionality to color the cell |
Date: |
Tue, 18 Nov 2014 23:23:28 +0000 |
Revision: 12330
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12330
Author: nudrick
Date: 2014-11-18 23:23:27 +0000 (Tue, 18 Nov 2014)
Log Message:
-----------
adding functionality to color the cell
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-18 12:06:01 UTC (rev 12329)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
2014-11-18 23:23:27 UTC (rev 12330)
@@ -83,7 +83,7 @@
.toggle-box:checked + label:before {
content: "\2212";
}
-
+
</style>
<input class="toggle-box" id="header1" type="checkbox" />
@@ -332,23 +332,12 @@
{
data: "<xsl:value-of
select="key"/>",
fnCreatedCell: function(nTd, sData,
oData, iRow, iCol){
- var priority =
oData['priority'];
- if(iCol == 0)
+ if(typeof(oData['priority']) !=
undefined)
{
- if(priority == 1)
+ if(iCol == 0)
{
-
$(nTd).css('background-color', '#da7a7a');
+
$(nTd).addClass('priority' + oData['priority']);
}
-
- if(priority == 2)
- {
-
$(nTd).css('background-color', '#dababa');
- }
-
- if(priority == 3)
- {
-
$(nTd).css('background-color', '#dadada');
- }
}
},
class: "<xsl:value-of
select="className"/>",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12330] adding functionality to color the cell,
Alejandro <=