Anonymous avatar Anonymous committed 2f7f2aa


Comments (0)

Files changed (1)


-          url: '/api/search?query=' + $.URLEncode($('#searchfield').val()),
+          url: '/api/search?limit=200&query=' + encodeURI($('#searchfield').val()),
           success: function(data){
-            console.log(data);
+            $.each(data.Wines, function(i,e){
+              <div class="vin">
+                <div class="img">
+                  <image class="wine_img" src="" />
+                </div>
+                <div class="infos">
+                  <a href="#">Nom du vin</a>
+                  <p>$$$</p>
+                  <p>Cépage</p>
+                  <p>Origine</p>
+                  <a href="#">Emportez moi!</a>
+                </div>
+              </div>*/
+            })
         return false; 
          context: document.body,
          success: function(data){
-              console.log(data);
               $('#searchfield').autocomplete(data, {max: 10, scrollHeight: 200});
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.