From e5db805157b2c7118ddfd3916e0427b2156e6e49 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 11 Jan 2019 22:18:33 +0100 Subject: Move the info summary in the info-box into nmsBox-logic Also some other random drive-by fixes :D Fixes #180 References #181 --- web/js/nms-ui-switch.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/js/nms-ui-switch.js') 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 -- cgit v1.2.3