[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12335] Move addclass to the entire row in fnRowCallb
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [12335] Move addclass to the entire row in fnRowCallback |
Date: |
Wed, 19 Nov 2014 09:27:53 +0000 |
Revision: 12335
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12335
Author: sigurdne
Date: 2014-11-19 09:27:52 +0000 (Wed, 19 Nov 2014)
Log Message:
-----------
Move addclass to the entire row in fnRowCallback
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 23:30:11 UTC (rev 12334)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
2014-11-19 09:27:52 UTC (rev 12335)
@@ -331,15 +331,16 @@
<xsl:for-each select="//datatable/field">
{
data: "<xsl:value-of
select="key"/>",
- fnCreatedCell: function(nTd, sData,
oData, iRow, iCol){
- if(typeof(oData['priority']) !=
undefined)
- {
- if(iCol == 0)
- {
-
$(nTd).addClass('priority' + oData['priority']);
- }
- }
- },
+//Sigurd: move the addclass to the entire row (fnRowCallback).
+// fnCreatedCell: function(nTd, sData,
oData, iRow, iCol){
+// if(typeof(oData['priority']) !=
undefined)
+// {
+// if(iCol == 0)
+// {
+//
$(nTd).addClass('priority' + oData['priority']);
+// }
+// }
+// },
class: "<xsl:value-of
select="className"/>",
orderable: <xsl:value-of
select="phpgw:conditional(not(sortable = 0), 'true', 'false')"/>,
<xsl:choose>
@@ -639,6 +640,12 @@
data: {},
type: 'GET'
},
+ fnRowCallback: function(nRow, aData,
iDisplayIndex, iDisplayIndexFull) {
+
if(typeof(aData['priority'])!= undefined && aData['priority'] > 0)
+ {
+ $('td',
nRow).addClass('priority' + aData['priority']);
+ }
+ },
fnDrawCallback: function () {
oTable.makeEditable({
sUpdateURL:
editor_action,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12335] Move addclass to the entire row in fnRowCallback,
Sigurd Nes <=