Make sure parseInt returns decimal
git-svn-id: https://develop.svn.wordpress.org/trunk@10873 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bd0313e3bc
commit
62faa2c130
|
@ -119,7 +119,7 @@ $(document).ready(function(){columns.init();});
|
|||
screenOptions = {
|
||||
init : function() {
|
||||
$('.screen-per-page').change(function() {
|
||||
var option = this.id, value = parseInt($(this).val());
|
||||
var option = this.id, value = parseInt($(this).val(), 10);
|
||||
if ( isNaN(value) ) {
|
||||
$(this).val('');
|
||||
return;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue