[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13007] allow queryPortico. updateinlineTableHelper t
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [13007] allow queryPortico. updateinlineTableHelper to called by container name |
Date: |
Tue, 14 Apr 2015 14:16:33 +0000 |
Revision: 13007
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13007
Author: sigurdne
Date: 2015-04-14 14:16:32 +0000 (Tue, 14 Apr 2015)
Log Message:
-----------
allow queryPortico.updateinlineTableHelper to called by container name
Modified Paths:
--------------
branches/dev-syncromind/phpgwapi/js/jquery/common.js
Modified: branches/dev-syncromind/phpgwapi/js/jquery/common.js
===================================================================
--- branches/dev-syncromind/phpgwapi/js/jquery/common.js 2015-04-13
21:16:01 UTC (rev 13006)
+++ branches/dev-syncromind/phpgwapi/js/jquery/common.js 2015-04-14
14:16:32 UTC (rev 13007)
@@ -259,9 +259,24 @@
};
JqueryPortico.updateinlineTableHelper = function(oTable, requestUrl)
-{
- var api = oTable.api();
- api.ajax.url( requestUrl ).load();
+{
+ if(typeof(oTable) == 'string')
+ {
+ var _oTable = $("#" + oTable).dataTable();
+ }
+ else
+ {
+ var _oTable = oTable;
+ }
+ if(typeof(requestUrl) == 'undefined')
+ {
+ _oTable.fnDraw();
+ }
+ else
+ {
+ var api = _oTable.api();
+ api.ajax.url( requestUrl ).load();
+ }
};
JqueryPortico.fnGetSelected = function(oTable)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13007] allow queryPortico. updateinlineTableHelper to called by container name,
Sigurd Nes <=