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 = {
|
||||
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