diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-30 22:17:18 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-30 22:17:18 +0200 |
commit | d6e3195b38d8285c12a1fa4a23f8498e5122f4fe (patch) | |
tree | df71420ec67fbd18e046c2d94013431c810e19c6 /apps/files_sharing/js/public.js | |
parent | ff75652cb7f19da633d1c17c8805a3d3200dd828 (diff) | |
parent | 2d1214d21d32c18d9aa6cada30f92a32bd809cdf (diff) | |
download | nextcloud-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.js | 8 |
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'); |