X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/916aa587c9cc241044c57493f5f4aea5d0b7a2de..4cd89c7304fb432da17b5fbbd352de666ff49a33:/wolnelektury/static/js/widgetInit.js diff --git a/wolnelektury/static/js/widgetInit.js b/wolnelektury/static/js/widgetInit.js index 074dbebc1..0a6e405a3 100644 --- a/wolnelektury/static/js/widgetInit.js +++ b/wolnelektury/static/js/widgetInit.js @@ -1,8 +1,8 @@ $(function() { - $("#id_q").autocomplete({ + $("#id_qq").autocomplete({ source: function(request, response) { $.ajax({ - url: "http://www.wolnelektury.pl/katalog/jtags/", + url: "http://lektury.staging.nowoczesnapolska.org.pl/katalog/jtags/", dataType: "jsonp", data: { featureClass: "P", @@ -17,12 +17,12 @@ value: item } })) - }, + } }) }, minLength: 2, select: function(event, ui) { - $("#id_q").val(ui.item.value); + $("#id_qq").val(ui.item.value); $("#wl-form").submit(); } });