~canonical-sysadmins/wordpress/5.1

« back to all changes in this revision

Viewing changes to wp-admin/js/customize-nav-menus.js

  • Committer: Jamon Camisso
  • Date: 2017-01-12 15:30:45 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: jamon.camisso@canonical.com-20170112153045-dekfwsu8mcsdxa7x
New upstream release 4.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1169
1169
 
1170
1170
                        // @todo It would be better if this was added directly on the setting itself, as opposed to the control.
1171
1171
                        control.setting.validate = function( value ) {
1172
 
                                return parseInt( value, 10 );
 
1172
                                if ( '' === value ) {
 
1173
                                        return 0;
 
1174
                                } else {
 
1175
                                        return parseInt( value, 10 );
 
1176
                                }
1173
1177
                        };
1174
1178
 
1175
1179
                        // Edit menu button.