From dc711297eaf4fedb78dd685b8705d99bb2b84ef5 Mon Sep 17 00:00:00 2001 From: Peter Grassberger Date: Fri, 15 Jul 2016 19:37:28 +0200 Subject: fix jingles socket progress diff --git a/www/js/importer.js b/www/js/importer.js index 7e72150..39864a7 100644 --- a/www/js/importer.js +++ b/www/js/importer.js @@ -247,7 +247,7 @@ Rdxport.Importer.prototype.getUploadByCartNumber = function(cartNumber) { } var upload = null; $.each(this.uploads, function(index, currentUpload) { - if (parseInt(currentUpload.cartNumber) === parseInt(cartNumber)) { + if (currentUpload.cartNumber === parseInt(cartNumber)) { upload = currentUpload; return false; //break; } @@ -304,7 +304,7 @@ Rdxport.Upload = function(fileOrsourceUri, group, groupView, cartNumber, useMeta this.group = group; this.groupView = groupView; - this.cartNumber = cartNumber; + this.cartNumber = parseInt(cartNumber); this.cutNumber = null; this.useMetadata = useMetadata; -- cgit v0.10.2