Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornacho <nacho@ownyourbits.com>2018-12-31 04:00:01 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-05 04:14:53 +0300
commit7864c3a3fcf6fe0dbfd9ea2f0f46ad0681c2ef8a (patch)
tree32d6818b21e0bb3e68d05f251e42637b4edd8168 /ncp-web/elements.php
parent80cd216eac90642e54f6980eae30ff6dd5005001 (diff)
add path exists
Diffstat (limited to 'ncp-web/elements.php')
-rw-r--r--ncp-web/elements.php7
1 files changed, 6 insertions, 1 deletions
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 .= "<td>
<input type=\"text\"
- name=\"$param[name]\"
id=\"$ncp_app-$param[id]\"
+ name=\"$param[name]\"
+ class=\"$class\"
value=\"$param[value]\"
default=\"$default\"
placeholder=\"$suggest\"