]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix symbol score input type 2833/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 3 Apr 2019 06:57:29 +0000 (09:57 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 3 Apr 2019 06:57:29 +0000 (09:57 +0300)
interface/css/rspamd.css
interface/js/app/symbols.js

index 2c4e40ab8970852b9376fc6a3d27f94dfe98a0fb..e0e14bb3aebe8f766f005339fc818671c66b6135 100644 (file)
@@ -63,14 +63,18 @@ textarea {
        display:inline;
        }
 
-input[type="number"] {
-    width:4em !important;
+input.form-control[type="number"] {
+    width:4em;
     padding:2px 0;
     text-align:center;
 }
 input.action-scores {
     margin:5px -7em 5px 0;
 }
+table#symbolsTable input[type="number"] {
+    width:6em;
+    font-size:11px;
+}
 
 /* history table */
 .table-log {
@@ -553,13 +557,11 @@ td.maps-cell {
 
 .scorebar-spam {
        background-color: rgba(240, 0, 0, 0.1);
-  font-size:11px;
 }
-
 .scorebar-ham {
        background: rgba(100, 230, 80, 0.1);
-  font-size:11px;
 }
+
 /*btn-file for upload file button*/
 .btn-file {
     position: relative;
index 866478b1bd9ff4f330c79b2a00db6c4917550df5..ed0a675838db8bb8dd327e468d8d3e4bfaba1494 100644 (file)
@@ -87,7 +87,7 @@ define(["jquery", "footable"],
                         label_class = "scorebar-spam";
                     }
                     item.weight = "<input class=\"form-control input-sm mb-disabled " + label_class +
-                    "\" data-role=\"numerictextbox\" autocomplete=\"off\" \"type=\"number\" class=\"input\" min=\"" +
+                    "\" data-role=\"numerictextbox\" autocomplete=\"off\" type=\"number\" class=\"input\" min=\"" +
                     min + "\" max=\"" +
                     max + "\" step=\"" + decimalStep(item.weight) +
                     "\" tabindex=\"1\" value=\"" + Number(item.weight).toFixed(3) +