From 7864c3a3fcf6fe0dbfd9ea2f0f46ad0681c2ef8a Mon Sep 17 00:00:00 2001 From: nacho Date: Sun, 30 Dec 2018 18:00:01 -0700 Subject: add path exists --- ncp-web/elements.php | 7 ++++++- ncp-web/js/ncp.js | 37 +++++++++++++++++++++++++++++++++++++ ncp-web/ncp-launcher.php | 15 +++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) (limited to 'ncp-web') diff --git a/ncp-web/elements.php b/ncp-web/elements.php index ea2b4b65..52c50844 100644 --- a/ncp-web/elements.php +++ b/ncp-web/elements.php @@ -33,10 +33,15 @@ HTML; if (array_key_exists('default', $param)) $default = $param['default']; + $class = ''; + if ($param['type'] == 'directory' || $param['type'] == 'file') + $class = 'path'; + $ret .= "