summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-06-21 10:09:20 +0200
committerGitHub <noreply@github.com>2018-06-21 10:09:20 +0200
commit8ebc3d90a0876d243c889108f3a95219c0863458 (patch)
treea7fce3b4416ab1c86f1704b67fedd72555c9b348 /core/js
parentf9c98d86212f14b006fdf99251e35093d5026e80 (diff)
parenta596b062f520469ca52eed10a407fc4cf8891239 (diff)
downloadnextcloud-server-8ebc3d90a0876d243c889108f3a95219c0863458.tar.gz
nextcloud-server-8ebc3d90a0876d243c889108f3a95219c0863458.zip
Merge pull request #9518 from nextcloud/feature/5986/public_share_controller_middleware
Public share middleware & controller
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);
+ }
+ });
+});