fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14087] dded parameter for attributes


From: Saul
Subject: [Fmsystem-commits] [14087] dded parameter for attributes
Date: Fri, 02 Oct 2015 00:10:19 +0000

Revision: 14087
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14087
Author:   psaul
Date:     2015-10-02 00:10:18 +0000 (Fri, 02 Oct 2015)
Log Message:
-----------
dded parameter for attributes

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-10-02 
00:05:05 UTC (rev 14086)
+++ branches/dev-syncromind/phpgwapi/js/jquery/common.js        2015-10-02 
00:10:18 UTC (rev 14087)
@@ -693,12 +693,17 @@
 }
 
 
-function populateSelect (url, selection, container) {
+function populateSelect (url, selection, container, attr) {
     container.html("");
     var select = document.createElement('select');
     var option = document.createElement('option');
+    if (attr){
+        $.each(attr, function(i, v){
+            select.setAttribute(v['name'],v['value']);
+        })
+    }
     container.append(select);
-    option.setAttribute('value', '');
+    option.setAttribute('value', '');    
     option.text = '-----';
     select.appendChild(option);
     $.get(url, function(r){




reply via email to

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