diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-19 08:57:20 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-21 15:02:20 +0200 |
commit | 967a97904fb05f3778d9b7efcef7a8f1d76f829c (patch) | |
tree | 73d153b5ff7fbe337650d7c5b1c4e9e97c9c57b8 /core/js | |
parent | fc2767bbbb730254f19c259425783315ead35841 (diff) | |
download | nextcloud-server-967a97904fb05f3778d9b7efcef7a8f1d76f829c.tar.gz nextcloud-server-967a97904fb05f3778d9b7efcef7a8f1d76f829c.zip |
fix post url
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/sharedialogshareelistview.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index 01a96d3c3d1..88f116e8301 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -504,7 +504,7 @@ var shareId = $li.data('share-id'); var $menu = $element.closest('li'); var $form = $menu.next('li.share-note-form'); - + // show elements $menu.find('.share-note-delete').toggle(); $form.toggleClass('hidden'); @@ -522,7 +522,7 @@ console.log($form.find('.share-note')); $form.find('.share-note').val(''); - + self.sendNote('', shareId, $menu); }, @@ -569,7 +569,7 @@ // send data $.ajax({ method: 'PUT', - url: OC.generateUrl('/ocs/v2.php/apps/files_sharing/api/v1/shares/' + shareId), + url: OC.linkToOCS('apps/files_sharing/api/v1/shares',2) + shareId + '?' + OC.buildQueryString({format: 'json'}), data: { note: note }, complete : complete, error: error |