1(function($) { 2 3 /** 4 * Title order select go 5 * to URL on change option 6 * 7 * @since 1.2 8 */ 9 function wpsight_select_order() { 10 $('.listings-sort select').on('change', function () { 11 var url = $(this).val(); 12 if (url) { 13 window.location = url; 14 } 15 return false; 16 }); 17 } 18 19 wpsight_select_order(); 20 21 /** RESET SERACH */ 22 23 function wpsight_reset_form($form) { 24 $form.find('.listings-search-field .text').val(''); 25 $form.find('.listings-search-field-operator').val(''); 26 $form.find('select').val(''); 27 $form.find('select option[data-default="true"]').attr('selected',true); 28 $form.find('input:checkbox').removeAttr('checked'); 29 $form.find('input:radio').removeAttr('checked'); 30 $form.find('input:checkbox[data-default="true"]').attr('checked',true); 31 $form.find('input:radio[data-default="true"]').attr('checked',true); 32 } 33 34 function wpsight_reset_search() { 35 36 $('.listings-search-reset').click(function () { 37 wpsight_reset_form($('.wpsight-listings-search')); 38 $.cookie(wpsight_localize.cookie_search_query, null, { expires: 30, path: wpsight_localize.cookie_path }); 39 $(this).animate({ opacity: '0' },150); 40 }); 41 42 } 43 44 wpsight_reset_search(); 45 46}(jQuery));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.