accept float values in case ever any added to menu

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2732 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Brett Zamir 2014-03-16 03:32:12 +00:00
parent 3e6dbcb111
commit 5439b4dc73
1 changed files with 2 additions and 2 deletions

View File

@ -3275,7 +3275,7 @@ TO-DOS
if (val) {
zoomChanged(window, val);
} else {
changeZoom({value: parseInt(item.text(), 10)});
changeZoom({value: parseFloat(item.text())});
}
}, true);
@ -4948,7 +4948,7 @@ TO-DOS
editor.openPrep(function(ok) {
if (!ok) {return;}
svgCanvas.clear();
if (f.files.length==1) {
if (f.files.length === 1) {
$.process_cancel(uiStrings.notification.loadingImage);
var reader = new FileReader();
reader.onloadend = function(e) {