Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMatthias Held <ilovemilk@wusa.io>2018-09-07 18:49:11 +0300
committerMatthias Held <ilovemilk@wusa.io>2018-09-07 18:49:11 +0300
commitba88b8210ab98ae35fcbf3ff950afe552286c815 (patch)
treedd0eb7d054753adef354cd43b54296897b3fde02 /js
parent93742886cabc7514b93e654c482893a0dec309ce (diff)
Fix variable type string => integer
Diffstat (limited to 'js')
-rw-r--r--js/filelist.js20
-rw-r--r--js/scan.js2
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 {
diff --git a/js/scan.js b/js/scan.js
index b5be947..453ce40 100644
--- a/js/scan.js
+++ b/js/scan.js
@@ -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 {