From 7fe47432201bf082479cb4315e693348ad4e9732 Mon Sep 17 00:00:00 2001 From: nacho Date: Sun, 30 Dec 2018 18:23:49 -0700 Subject: add icons for passwords and defaults --- ncp-web/css/ncp.css | 6 ++++++ ncp-web/elements.php | 4 ++-- ncp-web/img/defaults.svg | 1 + ncp-web/img/toggle.svg | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ ncp-web/js/ncp.js | 1 + 5 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 ncp-web/img/defaults.svg create mode 100644 ncp-web/img/toggle.svg (limited to 'ncp-web') diff --git a/ncp-web/css/ncp.css b/ncp-web/css/ncp.css index c5ae5727..3c0a075a 100644 --- a/ncp-web/css/ncp.css +++ b/ncp-web/css/ncp.css @@ -1339,4 +1339,10 @@ a#versionlink:hover { .pwd-btn, .default-btn { cursor: pointer; + -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)'; + opacity: 0.5; +} +.pwd-btn:hover, .default-btn:hover { + -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; + opacity: 1; } diff --git a/ncp-web/elements.php b/ncp-web/elements.php index 52c50844..56446306 100644 --- a/ncp-web/elements.php +++ b/ncp-web/elements.php @@ -48,7 +48,7 @@ HTML; size=\"40\">"; if (array_key_exists('default', $param)) - $ret .= ""; + $ret .= " "; if ($param['type'] == 'directory') { @@ -84,7 +84,7 @@ HTML; id=\"$ncp_app-$param[id]\" value=\"$param[value]\" size=\"40\">"; - $ret .= ""; + $ret .= " "; $ret .= ""; } diff --git a/ncp-web/img/defaults.svg b/ncp-web/img/defaults.svg new file mode 100644 index 00000000..bb09c568 --- /dev/null +++ b/ncp-web/img/defaults.svg @@ -0,0 +1 @@ + diff --git a/ncp-web/img/toggle.svg b/ncp-web/img/toggle.svg new file mode 100644 index 00000000..1ae9d0c2 --- /dev/null +++ b/ncp-web/img/toggle.svg @@ -0,0 +1,55 @@ + + + + + + image/svg+xml + + + + + + + + diff --git a/ncp-web/js/ncp.js b/ncp-web/js/ncp.js index 5e85bad3..c6c043ef 100644 --- a/ncp-web/js/ncp.js +++ b/ncp-web/js/ncp.js @@ -266,6 +266,7 @@ $(function() { var input = this.trav('previousSibling', 1); input.set('.value', input.get('@default')); + input.trigger('change'); }); // Path fields -- cgit v1.2.3