summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-06-11 14:15:03 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-06-20 08:53:37 +0200
commit31392c24434c8dfbe770cec93ccb3c209392334e (patch)
treeb489fe7d181223b06c8c358be6922a47433ce1d8 /core/js
parent366981fba6d01167c1ac38f559bd611062d8e534 (diff)
downloadnextcloud-server-31392c24434c8dfbe770cec93ccb3c209392334e.tar.gz
nextcloud-server-31392c24434c8dfbe770cec93ccb3c209392334e.zip
Move public auth page over
Now this is in core so the basics (that 99% of the app will want to use) looks always the same. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/publicshareauth.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/js/publicshareauth.js b/core/js/publicshareauth.js
new file mode 100644
index 00000000000..7f3f0d0a7d4
--- /dev/null
+++ b/core/js/publicshareauth.js
@@ -0,0 +1,9 @@
+$(document).ready(function(){
+ $('#password').on('keyup input change', function() {
+ if ($('#password').val().length > 0) {
+ $('#password-submit').prop('disabled', false);
+ } else {
+ $('#password-submit').prop('disabled', true);
+ }
+ });
+});