Sponsor Tecnico

Cerca

jQuery(function ($) { initChosen(); $("body").on("subform-row-add", initChosen); function initChosen(event, container) { container = container || document; $(container).find(".advancedSelect").chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":"Scrivi o seleziona alcune opzioni","placeholder_text_single":"Seleziona un'opzione","no_results_text":"Nessun risultato"}); } }); jQuery(function() { jQuery('#finder-search').on('submit', function(e){ e.stopPropagation(); // Disable select boxes with no value selected. jQuery('#advancedSearch').find('select').each(function(index, el) { var el = jQuery(el); if(!el.val()){ el.attr('disabled', 'disabled'); } }); }); var suggest = jQuery('#q').autocomplete({ serviceUrl: '/cerca?task=suggestions.suggest&format=json&tmpl=component', paramName: 'q', minChars: 1, maxHeight: 400, width: 300, zIndex: 9999, deferRequestBy: 500 }); }); if (typeof RokBoxSettings == 'undefined') RokBoxSettings = {pc: '100'};