[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12907] change links to buttons
From: |
Alejandro |
Subject: |
[Fmsystem-commits] [12907] change links to buttons |
Date: |
Thu, 26 Mar 2015 21:45:40 +0000 |
Revision: 12907
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12907
Author: nudrick
Date: 2015-03-26 21:45:39 +0000 (Thu, 26 Mar 2015)
Log Message:
-----------
change links to buttons
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-03-26 13:54:43 UTC (rev 12906)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
2015-03-26 21:45:39 UTC (rev 12907)
@@ -236,14 +236,25 @@
</xsl:when>
<xsl:when test="type = 'link'">
<td valign="top">
- <a href="{href}">
+ <input type="button"
class="pure-button pure-button-primary">
+ <xsl:choose>
+ <xsl:when
test="onclick">
+
<xsl:attribute name="onclick"><xsl:value-of select="onclick"/></xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+
<xsl:attribute name="onclick">javascript:window.open('<xsl:value-of
select="href"/>', "_self");</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:attribute
name="value"><xsl:value-of select="value"/></xsl:attribute>
+ </input>
+ <!--a href="{href}">
<xsl:if test="onclick">
<xsl:attribute
name="onclick">
<xsl:value-of select="onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of
select="value"/>
- </a>
+ </a-->
</td>
</xsl:when>
<xsl:when test="type = 'hidden'">
@@ -715,6 +726,8 @@
fnRowCallback: function(nRow, aData,
iDisplayIndex, iDisplayIndexFull) {
if(typeof(aData['priority'])!= undefined && aData['priority'] > 0)
{
+
//nRow.addClass(''),
+
console.log(nRow),
$('td',
nRow).addClass('priority' + aData['priority']);
}
},
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12907] change links to buttons,
Alejandro <=