aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2019-04-03 09:57:29 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2019-04-03 09:57:29 +0300
commita8875bd228800e51e5fc24e357991ae89d3f9966 (patch)
tree1f792ae497f71e7a9b1f95be2b201c6f4a290243 /interface
parent186c9a09975de2644e3674a43f6dbb28bc0159c8 (diff)
downloadrspamd-a8875bd228800e51e5fc24e357991ae89d3f9966.tar.gz
rspamd-a8875bd228800e51e5fc24e357991ae89d3f9966.zip
[WebUI] Fix symbol score input type
Diffstat (limited to 'interface')
-rw-r--r--interface/css/rspamd.css12
-rw-r--r--interface/js/app/symbols.js2
2 files changed, 8 insertions, 6 deletions
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css
index 2c4e40ab8..e0e14bb3a 100644
--- a/interface/css/rspamd.css
+++ b/interface/css/rspamd.css
@@ -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;
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js
index 866478b1b..ed0a67583 100644
--- a/interface/js/app/symbols.js
+++ b/interface/js/app/symbols.js
@@ -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) +