]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix 'add to your nextcloud' input field, this is not an email address 5382/head
authorBjoern Schiessle <bjoern@schiessle.org>
Tue, 13 Jun 2017 15:31:44 +0000 (17:31 +0200)
committerBjoern Schiessle <bjoern@schiessle.org>
Tue, 13 Jun 2017 15:46:00 +0000 (17:46 +0200)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
apps/files_sharing/js/public.js
apps/files_sharing/templates/public.php

index ad3ef856f23f15f4a7fcea7aa86e4f8f42ebc488..1407737d00742656ccf1fdea31df8d09779aa796 100644 (file)
@@ -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');
index adbbd0f80e7264c592f5a2e9559cf0f7f644d6ed..377e39020020cceb38b15a7c6afe90d59f0a7e44 100644 (file)
@@ -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>