diff options
author | Matthias Held <ilovemilk@wusa.io> | 2018-09-07 18:49:11 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2018-09-07 18:49:11 +0300 |
commit | ba88b8210ab98ae35fcbf3ff950afe552286c815 (patch) | |
tree | dd0eb7d054753adef354cd43b54296897b3fde02 /js | |
parent | 93742886cabc7514b93e654c482893a0dec309ce (diff) |
Fix variable type string => integer
Diffstat (limited to 'js')
-rw-r--r-- | js/filelist.js | 20 | ||||
-rw-r--r-- | js/scan.js | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/js/filelist.js b/js/filelist.js index c43ebf6..245a749 100644 --- a/js/filelist.js +++ b/js/filelist.js @@ -424,13 +424,13 @@ }).text(simpleSize)); tr.append(td); - if (fileData.fileClass === '1') { + if (fileData.fileClass === 1) { // encrypted td = $('<td></td>').append($('<p></p>').attr({"title": "ENCRYPTED"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-lock fa-fw"></span>')); - } else if (fileData.fileClass === '2') { + } else if (fileData.fileClass === 2) { // compressed td = $('<td></td>').append($('<p></p>').attr({"title": "COMPRESSED"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-file-archive fa-fw"></span>')); - } else if (fileData.fileClass === '3') { + } else if (fileData.fileClass === 3) { // normal td = $('<td></td>').append($('<p></p>').attr({"title": "NORMAL"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-file fa-fw"></span>')); } else { @@ -439,10 +439,10 @@ } tr.append(td); - if (fileData.fileExtensionClass === '0') { + if (fileData.fileExtensionClass === 0) { // normal td = $('<td></td>').append($('<p></p>').attr({"title": "NOT_SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-check-circle fa-fw"></span>')); - } else if (fileData.fileExtensionClass === '1') { + } else if (fileData.fileExtensionClass === 1) { // suspicious td = $('<td></td>').append($('<p></p>').attr({"title": "SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-exclamation-triangle fa-fw"></span>')); } else { @@ -585,13 +585,13 @@ }).text(simpleSize)); tr.append(td); - if (fileData.fileClass === '1') { + if (fileData.fileClass === 1) { // encrypted td = $('<td></td>').append($('<p></p>').attr({"title": "ENCRYPTED"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-lock fa-fw"></span>')); - } else if (fileData.fileClass === '2') { + } else if (fileData.fileClass === 2) { // compressed td = $('<td></td>').append($('<p></p>').attr({"title": "COMPRESSED"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-file-archive fa-fw"></span>')); - } else if (fileData.fileClass === '3') { + } else if (fileData.fileClass === 3) { // normal td = $('<td></td>').append($('<p></p>').attr({"title": "NORMAL"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-file fa-fw"></span>')); } else { @@ -600,10 +600,10 @@ } tr.append(td); - if (fileData.fileExtensionClass === '0') { + if (fileData.fileExtensionClass === 0) { // not suspicious td = $('<td></td>').append($('<p></p>').attr({"title": "NOT_SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-check-circle fa-fw"></span>')); - } else if (fileData.fileExtensionClass === '1') { + } else if (fileData.fileExtensionClass === 1) { // suspicious td = $('<td></td>').append($('<p></p>').attr({"title": "SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-exclamation-triangle fa-fw"></span>')); } else { @@ -444,7 +444,7 @@ if (fileData.fileExtensionClass === 0) { // not suspicious td = $('<td></td>').append($('<p></p>').attr({"title": "NOT_SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-check-circle fa-fw"></span>')); - } else if (fileData.fileExtensionClass === 3) { + } else if (fileData.fileExtensionClass === 1) { // suspicious td = $('<td></td>').append($('<p></p>').attr({"title": "SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-exclamation-triangle fa-fw"></span>')); } else { |