ru-se.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

date.js (473B)


      1 wp.customize.controlConstructor['kirki-date'] = wp.customize.Control.extend({
      2 
      3 	// When we're finished loading continue processing
      4 	ready: function() {
      5 
      6 		'use strict';
      7 
      8 		var control  = this,
      9 		    selector = control.selector + ' input.datepicker';
     10 
     11 		// Init the datepicker
     12 		jQuery( selector ).datepicker();
     13 
     14 		// Save the changes
     15 		this.container.on( 'change keyup paste', 'input.datepicker', function() {
     16 			control.setting.set( jQuery( this ).val() );
     17 		});
     18 
     19 	}
     20 
     21 });