From 451bad126922c8edf052bca4fe86245f935a665f Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Sun, 17 Sep 2017 15:03:18 +0800 Subject: [PATCH] Fix #99 with some jquery --- js/form.js | 7 +++++++ templates/form.php | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 js/form.js diff --git a/js/form.js b/js/form.js new file mode 100644 index 0000000..f254998 --- /dev/null +++ b/js/form.js @@ -0,0 +1,7 @@ +$('#show-password').click(function () { + if ( $('#password').attr('type') == "password" ) { + $('#password').attr('type', 'text'); + } else { + $('#password').attr('type', 'password'); + } +}); diff --git a/templates/form.php b/templates/form.php index 8b392fc..bd3450a 100644 --- a/templates/form.php +++ b/templates/form.php @@ -1,5 +1,6 @@ = 12 ) \OCP\Util::addStyle('core', 'guest'); ?>
@@ -33,7 +34,7 @@ if ( \OCP\Util::getVersion()[0] >= 12 ) - +