diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-12 16:30:09 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-14 16:39:48 +0200 |
commit | 2f23054b0126ec3497a7b632ff2399f6f3843a0f (patch) | |
tree | 603a047056a9e3893112a92b5565aa50aa62028d /apps/files_sharing | |
parent | 33a685bc41628e1236015bd79cc8f82b9cb6cabf (diff) | |
download | nextcloud-server-2f23054b0126ec3497a7b632ff2399f6f3843a0f.tar.gz nextcloud-server-2f23054b0126ec3497a7b632ff2399f6f3843a0f.zip |
s/ownCloud/Nextcloud
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/ajax/external.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/js/external.js | 1 | ||||
-rw-r--r-- | apps/files_sharing/js/public.js | 10 |
3 files changed, 6 insertions, 9 deletions
diff --git a/apps/files_sharing/ajax/external.php b/apps/files_sharing/ajax/external.php index d57d333c7ee..20c3706c12d 100644 --- a/apps/files_sharing/ajax/external.php +++ b/apps/files_sharing/ajax/external.php @@ -50,10 +50,8 @@ $shareWith = \OCP\User::getUser() . '@' . $urlGenerator->getAbsoluteURL('/'); $httpClient = \OC::$server->getHTTPClientService()->newClient(); -error_log("do th post"); - try { - $response = $httpClient->post($remote . '/index.php/apps/federatedfilesharing/saveToOwnCloud', + $response = $httpClient->post($remote . '/index.php/apps/federatedfilesharing/saveToNextcloud', [ 'body' => [ diff --git a/apps/files_sharing/js/external.js b/apps/files_sharing/js/external.js index be384818c3c..a04a5721f37 100644 --- a/apps/files_sharing/js/external.js +++ b/apps/files_sharing/js/external.js @@ -99,7 +99,6 @@ var callbackAddShare = function(result, share) { var password = share.password || ''; if (result) { - //$.post(OC.generateUrl('/apps/files_sharing/api/externalShares'), {id: share.id}); $.post(OC.generateUrl('apps/files_sharing/external'), { remote: share.remote, token: share.token, diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 4293c7b310b..6bc31879d0f 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -247,7 +247,7 @@ OCA.Sharing.PublicApp = { var ownerDisplayName = $('#save').data('owner-display-name'); var name = $('#save').data('name'); var isProtected = $('#save').data('protected') ? 1 : 0; - OCA.Sharing.PublicApp._saveToOwnCloud(remote, token, owner, ownerDisplayName, name, isProtected); + OCA.Sharing.PublicApp._saveToNextcloud(remote, token, owner, ownerDisplayName, name, isProtected); }); $('#remote_address').on("keyup paste", function() { @@ -307,7 +307,7 @@ OCA.Sharing.PublicApp = { * @param isProtected * @private */ - _legacySaveToOwnCloud: function (remote, token, owner, ownerDisplayName, name, isProtected) { + _legacySaveToNextcloud: function (remote, token, owner, ownerDisplayName, name, isProtected) { var location = window.location.protocol + '//' + window.location.host + OC.webroot; @@ -335,7 +335,7 @@ OCA.Sharing.PublicApp = { } }, - _saveToOwnCloud: function (remote, token, owner, ownerDisplayName, name, isProtected) { + _saveToNextcloud: function (remote, token, owner, ownerDisplayName, name, isProtected) { var toggleLoading = function() { var iconClass = $('#save-button-confirm').attr('class'); @@ -357,13 +357,13 @@ OCA.Sharing.PublicApp = { toggleLoading(); if (remote.indexOf('@') == -1) { - this._legacySaveToOwnCloud(remote, token, owner, ownerDisplayName, name, isProtected); + this._legacySaveToNextcloud(remote, token, owner, ownerDisplayName, name, isProtected); toggleLoading(); return; } $.post( - OC.generateUrl('/apps/federatedfilesharing/saveToOwnCloud'), + OC.generateUrl('/apps/federatedfilesharing/saveToNextcloud'), { 'shareWith': remote, 'token': token |