Zabrakło jakiegoś tytułu?
Zaproponuj dodanie do Wideoteki filmów lub seriali i zagłosuj na tytuły zaproponowane przez innych użytkowników!
$(window).width() / 2 ? 'left' : 'right'; }, animation: false, delay: { show: 0, hide: 0 }, html: true, content: function () { try { var data = JSON.parse($(this).attr('data-json')); return tpl.compile(document.getElementById('popover_content_template').innerHTML, data); } catch (e) { } } }) .on('mouseenter', function () { $(this).popover('show'); }) .on('mouseleave', function () { $(this).popover('hide'); }) $('.catalog_films__block_filter>.menu>.search>[name="queryString"]') .on('hover focus change', function () { let queryString = $(this).val().trim(), $el = $(this).parent().find('.dropdown-menu'); if (2 >= queryString.length) { $el.hide(); return false; } $el.show(); $el.html('
'); setTimeout(function () { $.ajax('/pl/wideoteka/?do=search', { type: 'POST', data: 'query=' + queryString, dataType: 'json', success: function (data) { if ('object' === typeof data && data instanceof Array) { $el.html(0 === data.length ? '
Brak wyników
' : tpl.compile(document.getElementById('search_list_results_template').innerHTML, { list_results: data })); } } }); }, 1000); }); //} //}) } catch (err) { // console.log(err); } });