[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16479] API: reference inline tables
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [16479] API: reference inline tables |
Date: |
Sat, 25 Mar 2017 07:57:23 -0400 (EDT) |
Revision: 16479
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16479
Author: sigurdne
Date: 2017-03-25 07:57:22 -0400 (Sat, 25 Mar 2017)
Log Message:
-----------
API: reference inline tables
Modified Paths:
--------------
trunk/phpgwapi/js/jquery/common.js
trunk/phpgwapi/templates/base/datatable_inline.xsl
Modified: trunk/phpgwapi/js/jquery/common.js
===================================================================
--- trunk/phpgwapi/js/jquery/common.js 2017-03-24 20:53:16 UTC (rev 16478)
+++ trunk/phpgwapi/js/jquery/common.js 2017-03-25 11:57:22 UTC (rev 16479)
@@ -259,7 +259,7 @@
return "<center>" + oData[key] + "</center>";
};
-JqueryPortico.inlineTableHelper = function (container, ajax_url, columns,
options, data)
+JqueryPortico.inlineTableHelper = function (container, ajax_url, columns,
options, data, num)
{
options = options || {};
var disablePagination = options['disablePagination'] || false;
@@ -275,6 +275,7 @@
var allrows = options['allrows'] || false;
var pageLength = options['rows_per_page'] || 10;
data = data || {};
+ num = num || 0;
for (i = 0; i < columns.length; i++)
{
@@ -506,7 +507,8 @@
}
try
{
- window['local_DrawCallback' +
JqueryPortico.inlineTablesRendered](oTable);
+// window['local_DrawCallback' +
JqueryPortico.inlineTablesRendered](oTable);
+ window['local_DrawCallback' + num](oTable);
}
catch (err)
{
Modified: trunk/phpgwapi/templates/base/datatable_inline.xsl
===================================================================
--- trunk/phpgwapi/templates/base/datatable_inline.xsl 2017-03-24 20:53:16 UTC
(rev 16478)
+++ trunk/phpgwapi/templates/base/datatable_inline.xsl 2017-03-25 11:57:22 UTC
(rev 16479)
@@ -391,7 +391,7 @@
</xsl:variable>
// $(document).ready(function() {
var paramsTable<xsl:number value="$num"/> = {};
- oTable<xsl:number value="$num"/> =
JqueryPortico.inlineTableHelper("<xsl:value-of select="$container"/>",
<xsl:value-of select="$requestUrl"/>, columns<xsl:number value="$num"/>,
options<xsl:number value="$num"/> , <xsl:value-of select="$dataset"/>);
+ oTable<xsl:number value="$num"/> =
JqueryPortico.inlineTableHelper("<xsl:value-of select="$container"/>",
<xsl:value-of select="$requestUrl"/>, columns<xsl:number value="$num"/>,
options<xsl:number value="$num"/> , <xsl:value-of select="$dataset"/>,
<xsl:number value="$num"/>);
// });
</script>
</xsl:template>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16479] API: reference inline tables,
sigurdne <=