fix post url

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2018-07-19 08:57:20 +02:00 committed by John Molakvoæ (skjnldsv)
parent fc2767bbbb
commit 967a97904f
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 3 additions and 3 deletions

View File

@ -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