move to django 1.4 and django-pipeline,
[wolnelektury.git] / wolnelektury / static / js / widgetInit.js
diff --git a/wolnelektury/static/js/widgetInit.js b/wolnelektury/static/js/widgetInit.js
deleted file mode 100644 (file)
index ab57a30..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-       $(function() {          
-               $("#id_qq").autocomplete({
-                       source: function(request, response) {
-                               $.ajax({
-                                       url: "http://www.wolnelektury.pl/katalog/jtags/",
-                                       dataType: "jsonp",
-                                       data: {
-                                               featureClass: "P",
-                                               style: "full",
-                                               maxRows: 10,
-                                               q: request.term
-                                       },
-                                       success: function(data) {
-                                               response($.map(data.matches, function(item) {
-                                                       return {
-                                                               label: item,
-                                                               value: item
-                                                       }
-                                               }))
-                                       }                                       
-                               })
-                       },
-                       minLength: 2,
-            select: function(event, ui) {
-                $("#id_qq").val(ui.item.value);
-                $("#wl-form").submit();
-            }                  
-               });
-       });