diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/list_lib.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index 9d02f0683..acbe95d77 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -136,7 +136,7 @@ function collapseAll(){ function setNumberOfDives(e){ var value = e.options[e.selectedIndex].value; - sizeofpage=parseInt(value); + sizeofpage=parseInt(value,10); var end = start + sizeofpage -1; view_in_range(start,end); } @@ -325,16 +325,16 @@ function cmpDateDes(j,iSmaller){ return items[j].date > items[iSmaller].date ; } function cmpAtempAsc(j,iSmaller){ - return parseInt(items[j].temperature.air) < parseInt(items[iSmaller].temperature.air) ; + return parseInt(items[j].temperature.air,10) < parseInt(items[iSmaller].temperature.air,10) ; } function cmpAtempDes(j,iSmaller){ - return parseInt(items[j].temperature.air) > parseInt(items[iSmaller].temperature.air) ; + return parseInt(items[j].temperature.air,10) > parseInt(items[iSmaller].temperature.air,10) ; } function cmpWtempAsc(j,iSmaller){ - return parseInt(items[j].temperature.water) < parseInt(items[iSmaller].temperature.water) ; + return parseInt(items[j].temperature.water,10) < parseInt(items[iSmaller].temperature.water,10) ; } function cmpWtempDes(j,iSmaller){ - return parseInt(items[j].temperature.water) > parseInt(items[iSmaller].temperature.water) ; + return parseInt(items[j].temperature.water,10) > parseInt(items[iSmaller].temperature.water,10) ; } function sort_it(sortOn,function_){ |