diff options
Diffstat (limited to 'js/pomf.js')
| -rw-r--r-- | js/pomf.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -49,7 +49,7 @@ $(function() { }); $uploadBtn.on('dragleave', function(e) { - node = e.target; + var node = e.target; do { if (node === this) { $(this).removeClass('drop'); @@ -61,7 +61,7 @@ $(function() { var MAX_SIZE = (function(node) { var max = node.attr('data-max-size') || '120MiB'; - var num = parseInt(/([0-9,]+).*/.exec(max)[1].replace(',', '')); + var num = parseInt(/([0-9,]+).*/.exec(max)[1].replace(',', ''), 10); var unit = /(?:([KMGTPEZY])(i)?B|([BKMGTPEZY]))/.exec(max) || ['B', '', '']; var oneUnit = Math.pow( @@ -171,7 +171,6 @@ $(function() { $uploadFiles.addClass('error completed'); $totalName.text(UPLOAD_ERR_FAILED); } - }); up.upload(); |
