Make sure parseInt returns decimal
git-svn-id: http://svn.automattic.com/wordpress/trunk@10873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d849a19db2
commit
2b4925cf63
|
@ -119,7 +119,7 @@ $(document).ready(function(){columns.init();});
|
||||||
screenOptions = {
|
screenOptions = {
|
||||||
init : function() {
|
init : function() {
|
||||||
$('.screen-per-page').change(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) ) {
|
if ( isNaN(value) ) {
|
||||||
$(this).val('');
|
$(this).val('');
|
||||||
return;
|
return;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue