Customizer: Bind input and propertychange events for range input types.

props voldemortensen, westonruter.
fixes #30223.
Built from https://develop.svn.wordpress.org/trunk@30219


git-svn-id: http://core.svn.wordpress.org/trunk@30219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-11-03 21:49:23 +00:00
parent 9a3b7977fd
commit a17fd23e41
3 changed files with 8 additions and 4 deletions

View File

@ -426,10 +426,14 @@ window.wp = window.wp || {};
if ( this.element.is('input') ) { if ( this.element.is('input') ) {
type = this.element.prop('type'); type = this.element.prop('type');
if ( api.Element.synchronizer[ type ] ) if ( api.Element.synchronizer[ type ] ) {
synchronizer = api.Element.synchronizer[ type ]; synchronizer = api.Element.synchronizer[ type ];
if ( 'text' === type || 'password' === type ) }
if ( 'text' === type || 'password' === type ) {
this.events += ' keyup'; this.events += ' keyup';
} else if ( 'range' === type ) {
this.events += ' input propertychange';
}
} else if ( this.element.is('textarea') ) { } else if ( this.element.is('textarea') ) {
this.events += ' keyup'; this.events += ' keyup';
} }

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.1-alpha-30218'; $wp_version = '4.1-alpha-30219';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.