[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12390] common.js
From: |
Saul |
Subject: |
[Fmsystem-commits] [12390] common.js |
Date: |
Thu, 27 Nov 2014 23:24:26 +0000 |
Revision: 12390
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12390
Author: psaul
Date: 2014-11-27 23:24:25 +0000 (Thu, 27 Nov 2014)
Log Message:
-----------
common.js
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 2014-11-27
23:23:42 UTC (rev 12389)
+++ branches/dev-syncromind/phpgwapi/js/jquery/common.js 2014-11-27
23:24:25 UTC (rev 12390)
@@ -12,12 +12,30 @@
JqueryPortico.inlineTablesRendered = 0;
JqueryPortico.formatLink = function(key, oData) {
-
+
var name = oData[key];
var link = oData['link'];
return '<a href="' + link + '">' + name + '</a>';
};
+JqueryPortico.formatLinktwo = function(key, oData) {
+
+ var id = '';
+ if(key == 'project_id')
+ {
+ id = oData['project_id'];
+ }
+ else if(key == 'workorder_id')
+ {
+ id = oData['workorder_id'];
+ }
+
+ var name = oData[key];
+ var link = oData['link'];
+
+ return '<a href="' + link + '&id='+ id +'">' + name + '</a>';
+};
+
JqueryPortico.formatLinkGeneric = function(key, oData) {
if(!oData[key])
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12390] common.js,
Saul <=