aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-ui-switch.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/nms-ui-switch.js')
-rw-r--r--web/js/nms-ui-switch.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/js/nms-ui-switch.js b/web/js/nms-ui-switch.js
index 0a9c52f..7887656 100644
--- a/web/js/nms-ui-switch.js
+++ b/web/js/nms-ui-switch.js
@@ -196,12 +196,14 @@ class nmsEditRow extends nmsBox {
input.row = this;
if (value.ro) {
input.html.disabled = true;
+ input.html.title = "Read/only attribute";
}
if (value instanceof nmsTypeSecret) {
input.html.type = "password"
input.html.autocomplete = "off"
input.html.onfocus = function f() { this.type = "text" }
input.html.oninput = function f() { this.type = "text" }
+ input.html.onblur = function f() { this.type = "password" }
}
input.html.onchange = function() {
this.nmsBox.row.value = this.value