dropdown-pages.js (402B)
1 wp.customize.controlConstructor['kirki-dropdown-pages'] = 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 element = this.container.find( 'select' ); 10 11 jQuery( element ).selectize(); 12 this.container.on( 'change', 'select', function() { 13 control.setting.set( jQuery( this ).val() ); 14 }); 15 16 } 17 18 });