fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [12332] create function showPicture


From: Nelson Guerra
Subject: [Fmsystem-commits] [12332] create function showPicture
Date: Tue, 18 Nov 2014 23:29:20 +0000

Revision: 12332
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12332
Author:   nelson224
Date:     2014-11-18 23:29:20 +0000 (Tue, 18 Nov 2014)
Log Message:
-----------
create function showPicture

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-18 
23:23:51 UTC (rev 12331)
+++ branches/dev-syncromind/phpgwapi/js/jquery/common.js        2014-11-18 
23:29:20 UTC (rev 12332)
@@ -52,6 +52,19 @@
        return hidden + "<center><input type=\"radio\" name=\"rad_template\" 
class=\"myValuesForPHP\" value=\""+oData['template_id']+"\" /></center>";
 };
 
+JqueryPortico.showPicture = function(key, oData)
+{
+       var link = ""
+       if(oData['img_id'])
+       {
+               var img_name = oData['file_name'];
+               var img_id       = oData['img_id'];
+               var img_url  = phpGWLink('index.php', oData['img_url_args']);
+               link = "<a href=\""+img_url+"\" title=\""+img_name+"\" 
id=\""+img_id+"\" target=\"_blank\"><img src=\""+img_url+"&thumb=1\" 
alt=\""+img_name+"\" /></a>";
+       } 
+       return link;
+};
+       
 JqueryPortico.FormatterAmount0 = function(key, oData) {
 //     var amount = YAHOO.util.Number.format(oData, {decimalPlaces:0, 
decimalSeparator:",", thousandsSeparator:" "});
        //FIXME...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]