/** * Multiple select control */ /* global jQuery */ /* global wp */ ( function( $, api ) { 'use strict'; /* === Select Multiple Control === */ api.controlConstructor['select-multiple'] = api.Control.extend( { ready: function() { var control = this; $( 'select', control.container ).change( function() { var value = $( this ).val(); if ( null === value ) { control.setting.set( '' ); } else { control.setting.set( value ); } } ); } } ); } )( jQuery, wp.customize );
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
button.js | File | 655 B | 0644 |
|
heading.js | File | 564 B | 0644 |
|
multi-select.js | File | 547 B | 0644 |
|
ordering.js | File | 1.18 KB | 0644 |
|
range.js | File | 3.94 KB | 0644 |
|
responsive-input.js | File | 1.79 KB | 0644 |
|
responsive-switchers.js | File | 2.6 KB | 0644 |
|
tabs.js | File | 5.42 KB | 0644 |
|
typography-extra.js | File | 233 B | 0644 |
|
upsell.js | File | 243 B | 0644 |
|