X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/82c3054bcdeb000aa9782da80d644070797b5cbe..ae60b2a3949e96357477cc04f90fd0873cee8a92:/apps/wolnelektury_core/static/js/widget_run.js diff --git a/apps/wolnelektury_core/static/js/widget_run.js b/apps/wolnelektury_core/static/js/widget_run.js deleted file mode 100644 index c2453e722..000000000 --- a/apps/wolnelektury_core/static/js/widget_run.js +++ /dev/null @@ -1,26 +0,0 @@ -var s = $('#id_qq'); -var url = s.attr('data-source'); -s.search({ - source: function(req, cb) { - $.ajax({url: url, - dataType: "jsonp", - data: {term: req.term}, - type: "GET", - success: function(data) {cb(data);}, - error: function() {cb([]);} - }); - }, - dataType: "jsonp", - select: function(event, ui) { - if (ui.item.url != undefined) { - window.top.location.href = '//wolnelektury.pl' + ui.item.url; - } else { - $('form').submit(); - } - }, - position: { - my: "center bottom", - at: "center bottom", - of: "#wl a" - }, -});