diff options
author | prastut <kr.prastut@gmail.com> | 2016-03-08 04:25:35 +0530 |
---|---|---|
committer | prastut <kr.prastut@gmail.com> | 2016-03-08 04:25:35 +0530 |
commit | 7e52aac7715e026dbe9c6e2299f788b7a111d617 (patch) | |
tree | f93bd8dc89b27dde11856ed4d958015ef5ecec1c /apps/files_sharing/js | |
parent | 9f0711004f0574d5373574f8a1dc49552c3568e3 (diff) | |
download | nextcloud-server-7e52aac7715e026dbe9c6e2299f788b7a111d617.tar.gz nextcloud-server-7e52aac7715e026dbe9c6e2299f788b7a111d617.zip |
Public link share disabled if password length is equal to 0
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/authenticate.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_sharing/js/authenticate.js b/apps/files_sharing/js/authenticate.js new file mode 100644 index 00000000000..7f3f0d0a7d4 --- /dev/null +++ b/apps/files_sharing/js/authenticate.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); + } + }); +}); |