diff options
author | Kristian Lyngstol <kly@kly.no> | 2019-01-11 22:18:33 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2019-01-11 22:18:33 +0100 |
commit | e5db805157b2c7118ddfd3916e0427b2156e6e49 (patch) | |
tree | bdf57012c0e8224cdeb2467969e89b6fc348158e /web/js/nms-ui-switch.js | |
parent | a4919da3a91236131f7b4e084761ff6a5f73b94f (diff) |
Move the info summary in the info-box into nmsBox-logic
Also some other random drive-by fixes :D
Fixes #180
References #181
Diffstat (limited to 'web/js/nms-ui-switch.js')
-rw-r--r-- | web/js/nms-ui-switch.js | 2 |
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 |