summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-30 22:17:18 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-30 22:17:18 +0200
commitd6e3195b38d8285c12a1fa4a23f8498e5122f4fe (patch)
treedf71420ec67fbd18e046c2d94013431c810e19c6 /apps/files_sharing/js/public.js
parentff75652cb7f19da633d1c17c8805a3d3200dd828 (diff)
parent2d1214d21d32c18d9aa6cada30f92a32bd809cdf (diff)
downloadnextcloud-server-d6e3195b38d8285c12a1fa4a23f8498e5122f4fe.tar.gz
nextcloud-server-d6e3195b38d8285c12a1fa4a23f8498e5122f4fe.zip
Merge pull request #19421 from owncloud/fix_19382
Do noy allow empty urls to be submitted in "add to your owncloud"
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 1c3d4b9ac32..16b4f1589b1 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("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');