Merge branch 'reflow'
[wolnelektury.git] / 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 (file)
index c2453e7..0000000
+++ /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"
-    },
-});