1/** 2 * alg-datepicker. 3 * 4 * @version 1.0.0 5 * @since 1.0.0 6 * @package Input Fields for WooCommerce Pro 7 */ 8 9jQuery(document).ready( 10 function () { 11 jQuery("input[display='date']").each( 12 function () { 13 jQuery(this).datepicker( 14 { 15 dateFormat: jQuery(this).attr("dateformat"), 16 minDate: jQuery(this).attr("mindate"), 17 maxDate: jQuery(this).attr("maxdate"), 18 firstDay: jQuery(this).attr("firstday"), 19 changeYear: jQuery(this).attr("changeyear"), 20 yearRange: jQuery(this).attr("yearrange") 21 } 22 ); 23 } 24 ); 25 } 26); 27 28jQuery( document ).ajaxComplete(function( event,request, settings ) { 29 var text = settings.data; 30 var term = "action=flatsome_quickview"; 31 if( text.indexOf( term ) != -1 ) { 32 jQuery("input[display='date']").each( 33 function () { 34 jQuery(this).datepicker( 35 { 36 dateFormat: jQuery(this).attr("dateformat"), 37 minDate: jQuery(this).attr("mindate"), 38 maxDate: jQuery(this).attr("maxdate"), 39 firstDay: jQuery(this).attr("firstday"), 40 changeYear: jQuery(this).attr("changeyear"), 41 yearRange: jQuery(this).attr("yearrange") 42 } 43 ); 44 } 45 ); 46 } 47});
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.