From a17c4461869fc93e48c00cbb12dc588aa9b25f89 Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Sun, 27 Sep 2015 18:57:51 +0000 Subject: Add missing newlines after blocks Fixes JSCS requirePaddingNewLinesAfterBlocks warnings using Airbnb preset. --- js/pomf.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/pomf.js') diff --git a/js/pomf.js b/js/pomf.js index 2e810de..5690e60 100644 --- a/js/pomf.js +++ b/js/pomf.js @@ -131,6 +131,7 @@ $(function() { eachRow(files, function(row, file, files) { $('.progress-inner', row).width((file.percentUploaded * 100) + '%'); }); + $('.progress-inner', totalRow).width((files.percentUploaded * 100) + '%'); }); @@ -148,6 +149,7 @@ $(function() { totalName.text(UPLOAD_ERR_FAILED); break; } + eachRow(res.files, function(row, file, files) { var link = $(''); @@ -157,6 +159,7 @@ $(function() { $('.file-url', row).append(link); }); + uploadFiles.addClass('completed'); totalName.text('Done!'); break; @@ -168,7 +171,9 @@ $(function() { uploadFiles.addClass('error completed'); totalName.text(UPLOAD_ERR_FAILED); } + }); + up.upload(); }); }); -- cgit v1.2.3