From 7f00ff5357056ecca5ba09550c20d9ad8514948b Mon Sep 17 00:00:00 2001
From: Pellaeon Lin
Date: Sat, 22 Jun 2019 09:36:40 +0000
Subject: [PATCH] Fix# form: toggle password visibility for oc and nc
---
css/style.css | 9 ---------
js/form.js | 1 +
templates/form.php | 7 ++++++-
3 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/css/style.css b/css/style.css
index a0f30bb..3987ce6 100644
--- a/css/style.css
+++ b/css/style.css
@@ -30,12 +30,3 @@ input[type="submit"] {
.groupofone {
position: relative;
}
-
-#show-password {
- margin-left: 0px!important;
- padding-left: 0px!important;
-}
-
-#submit {
- margin-top: 24px!important;
-}
diff --git a/js/form.js b/js/form.js
index 7a8812d..162df5d 100644
--- a/js/form.js
+++ b/js/form.js
@@ -11,4 +11,5 @@ function togglePasswordTextFieldVisibility() {
$(document).ready(function() {
passwordTextField = $("#password");
$("#show").change(togglePasswordTextFieldVisibility);
+ $("#showadminpass").change(togglePasswordTextFieldVisibility);
});
diff --git a/templates/form.php b/templates/form.php
index e03f3f2..924472e 100644
--- a/templates/form.php
+++ b/templates/form.php
@@ -33,8 +33,13 @@ if ( \OCP\Util::getVersion()[0] >= 12 )
+ getConfig()->getAppValue('core', 'vendor', '') === 'nextcloud' ) { ?>
-
+
+
+
+
+