Explorar el Código

[FIX] upload.js - eslint

tags/1.9.0
Carsten Rosenberg hace 5 años
padre
commit
110f02f449
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      interface/js/app/upload.js

+ 2
- 2
interface/js/app/upload.js Ver fichero

@@ -74,9 +74,9 @@ define(["jquery"],
rspamd.alertMessage("alert-success", "Data successfully scanned");
var action = "";

if (json.action === "clean" || "no action") {
if (json.action === "clean" || json.action === "no action") {
action = "label-success";
} else if (json.action === "rewrite subject" || "add header" || "probable spam") {
} else if (json.action === "rewrite subject" || json.action === "add header" || json.action === "probable spam") {
action = "label-warning";
} else if (json.action === "spam") {
action = "label-danger";

Cargando…
Cancelar
Guardar