research invitation added
[wolnelektury.git] / wolnelektury / static / js / widgetInit.js
index 44857f8..ab57a30 100644 (file)
@@ -2,7 +2,7 @@
                $("#id_qq").autocomplete({
                        source: function(request, response) {
                                $.ajax({
                $("#id_qq").autocomplete({
                        source: function(request, response) {
                                $.ajax({
-                                       url: "http://lektury.staging.nowoczesnapolska.org.pl/katalog/jtags/",
+                                       url: "http://www.wolnelektury.pl/katalog/jtags/",
                                        dataType: "jsonp",
                                        data: {
                                                featureClass: "P",
                                        dataType: "jsonp",
                                        data: {
                                                featureClass: "P",
                                                                value: item
                                                        }
                                                }))
                                                                value: item
                                                        }
                                                }))
-                                       },                                      
+                                       }                                       
                                })
                        },
                        minLength: 2,
             select: function(event, ui) {
                                })
                        },
                        minLength: 2,
             select: function(event, ui) {
-                $("#id_q").val(ui.item.value);
+                $("#id_qq").val(ui.item.value);
                 $("#wl-form").submit();
             }                  
                });
                 $("#wl-form").submit();
             }                  
                });