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

props voldemortensen, westonruter.
fixes #30223.

git-svn-id: https://develop.svn.wordpress.org/trunk@30219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2014-11-03 21:48:22 +00:00
parent 0dcb810a91
commit 5d87d2c5d2
1 changed files with 6 additions and 2 deletions

View File

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