2 var url = s.attr('data-source');
4 source: function(req, cb) {
7 data: {term: req.term},
9 success: function(data) {cb(data);},
10 error: function() {cb([]);}
14 select: function(event, ui) {
15 if (ui.item.url != undefined) {
16 window.top.location.href = '//wolnelektury.pl' + ui.item.url;