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:
azaozz 2009-04-05 08:34:51 +00:00
parent d849a19db2
commit 2b4925cf63
2 changed files with 2 additions and 2 deletions

View File

@ -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