summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-06-13 14:41:32 -0500
committerGitHub <noreply@github.com>2017-06-13 14:41:32 -0500
commit69fd3a3c7bf12c45d8bb6577625efbcc2f1c17e9 (patch)
tree393bd3233883cc5de0e039dfd54d5b862d8af281 /apps
parentc4bb37b4ee92bdfded4cf5c7ed6dc666a0c23074 (diff)
parent2b3549610b5a000880d8f05bfec7a0d1b213daa7 (diff)
downloadnextcloud-server-69fd3a3c7bf12c45d8bb6577625efbcc2f1c17e9.tar.gz
nextcloud-server-69fd3a3c7bf12c45d8bb6577625efbcc2f1c17e9.zip
Merge pull request #5380 from nextcloud/global-scale-settings
fix "add to your nextcloud" input field
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/public.js2
-rw-r--r--apps/files_sharing/templates/public.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index ad3ef856f23..1407737d007 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -259,7 +259,7 @@ OCA.Sharing.PublicApp = {
$('.save-form').submit(function (event) {
event.preventDefault();
- var remote = $(this).find('input[type="email"]').val();
+ var remote = $(this).find('#remote_address').val();
var token = $('#sharingToken').val();
var owner = $('#save').data('owner');
var ownerDisplayName = $('#save').data('owner-display-name');
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index adbbd0f80e7..377e3902002 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -54,7 +54,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
data-owner-display-name="<?php p($_['displayName']) ?>" data-owner="<?php p($_['owner']) ?>" data-name="<?php p($_['filename']) ?>">
<button id="save-button"><?php p($l->t('Add to your Nextcloud')) ?></button>
<form class="save-form hidden" action="#">
- <input type="email" id="remote_address" placeholder="user@yourNextcloud.org"/>
+ <input type="text" id="remote_address" placeholder="user@yourNextcloud.org"/>
<button id="save-button-confirm" class="icon-confirm svg" disabled></button>
</form>
</span>