Author: jablko
Date: Mon Oct 18 17:43:15 2010
New Revision: 8252

Log:
Cosmetic changes

Modified:
   trunk/js/dialog.js

Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Mon Oct 18 17:05:17 2010        (r8251)
+++ trunk/js/dialog.js  Mon Oct 18 17:43:15 2010        (r8252)
@@ -328,9 +328,6 @@
 
       for (fieldname in this.fields)
       {
-        // Set dialog field
-        var thisTable = this.table;
-
         if (null == thisData[fieldname])
         {
           continue;
@@ -358,19 +355,17 @@
             dataSource.responseType = YAHOO.util.DataSourceBase.TYPE_TEXT;
             dataSource.parseTextData = function (request, response)
               {
-                var text = $('h1.label', response).text();
-
-                return { 'results': [ text ]};
+                return { 'results': [$('.label', response).text()] };
               };
 
-            var myCallback = {
+            // Set visible input field of yui-autocomplete
+            dataSource.sendRequest(null, {
               success: function (request, response)
                 {
-                  
$(hiddenInput).next('input.form-autocomplete').val(response.results[0]);
-                } }
-
-            // Set visible input field of yui-autocomplete
-            dataSource.sendRequest(null, myCallback);
+                  $(hiddenInput)
+                    .next('.form-autocomplete')
+                    .val(response.results[0]);
+                } });
           }
         }
       }

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to