mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
9a3b7977fd
commit
a17fd23e41
@ -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';
|
||||||
}
|
}
|
||||||
|
2
wp-includes/js/customize-base.min.js
vendored
2
wp-includes/js/customize-base.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user