fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12153] update to autocompleteHelper


From: Alejandro
Subject: [Fmsystem-commits] [12153] update to autocompleteHelper
Date: Fri, 10 Oct 2014 22:51:24 +0000

Revision: 12153
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12153
Author:   nudrick
Date:     2014-10-10 22:51:23 +0000 (Fri, 10 Oct 2014)
Log Message:
-----------
update to autocompleteHelper 

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-10-10 
21:02:01 UTC (rev 12152)
+++ branches/dev-syncromind/phpgwapi/js/jquery/common.js        2014-10-10 
22:51:23 UTC (rev 12153)
@@ -15,16 +15,15 @@
 JqueryPortico.autocompleteHelper = function(baseUrl, field, hidden, container, 
label_attr) {
        $(document).ready(function () 
        {
-               var oArgs = 
{menuaction:'property.uicondition_survey.get_users'};
-               var strURL = phpGWLink('index.php', oArgs, true);
-
-               $("#coordinator_name").autocomplete({
+               $("#" + field).autocomplete({
                        source: function( request, response ) {
+                               //console.log(request.term);
                                $.ajax({
-                                       url: strURL,
+                                       url: baseUrl,
                                        dataType: "json",
                                        data: {
-                                               location_name: request.term,
+                                               //location_name: request.term,
+                                               query: request.term,
                                                phpgw_return_as: "json"
                                        },
                                        success: function( data ) {
@@ -48,6 +47,7 @@
         });
        });
 
+
 };
                
                
\ No newline at end of file




reply via email to

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