From 4dc985ecb291488823a65cf942c0603bb44b6d64 Mon Sep 17 00:00:00 2001 From: Matthias Held Date: Mon, 10 Sep 2018 19:30:05 +0200 Subject: Fix some bugs --- js/filelist.js | 1 + js/scan.js | 1 + js/utils.js | 23 +++++++++-------------- 3 files changed, 11 insertions(+), 14 deletions(-) (limited to 'js') diff --git a/js/filelist.js b/js/filelist.js index 3c80773..5404ecc 100644 --- a/js/filelist.js +++ b/js/filelist.js @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +/* global OC */ (function() { /** diff --git a/js/scan.js b/js/scan.js index 394dad2..19d12e4 100644 --- a/js/scan.js +++ b/js/scan.js @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +/* global OC */ (function() { /** diff --git a/js/utils.js b/js/utils.js index 3d71a1a..3978d3f 100644 --- a/js/utils.js +++ b/js/utils.js @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +/** global: OC */ (function() { /** @@ -41,20 +42,12 @@ var self = this; var td, tr = $(''), mtime = parseInt(fileData.timestamp, 10) * 1000, - basename, extension, simpleSize, sizeColor; + basename, extension, simpleSize, sizeColor, filename; if (isNaN(mtime)) { mtime = new Date().getTime(); } - // size - if (typeof(fileData.size) !== 'undefined' && fileData.size >= 0) { - simpleSize = humanFileSize(parseInt(fileData.size, 10), true); - sizeColor = Math.round(160-Math.pow((fileData.size/(1024*1024)),2)); - } else { - simpleSize = t('ransomware_detection', 'Pending'); - } - td = $(''); td.append( '