aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-09-28 20:44:33 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-09-30 13:55:13 +0200
commit08fd4b38f895a5e9a91cdc476103c26be68dda80 (patch)
tree5cd0cccedd85aa1f055bb9afd92eb00e9037e6f7 /apps/files_sharing/js/public.js
parent6d743ffac6ceb2b89447e7a7da6fdbefc4a6d06a (diff)
downloadnextcloud-server-08fd4b38f895a5e9a91cdc476103c26be68dda80.tar.gz
nextcloud-server-08fd4b38f895a5e9a91cdc476103c26be68dda80.zip
Do noy allow empty urls to be submitted in "add to your owncloud"
Fixes #19382
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r--apps/files_sharing/js/public.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 6a6095317af..41333f1a089 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -228,6 +228,14 @@ OCA.Sharing.PublicApp = {
OCA.Sharing.PublicApp._saveToOwnCloud(remote, token, owner, name, isProtected);
});
+ $('#remote_address').on("change keyup paste", function() {
+ if ($(this).val() === '') {
+ $('#save-button-confirm').prop('disabled', true);
+ } else {
+ $('#save-button-confirm').prop('disabled', false);
+ }
+ });
+
$('#save #save-button').click(function () {
$(this).hide();
$('.save-form').css('display', 'inline');