From 967a97904fb05f3778d9b7efcef7a8f1d76f829c Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 19 Jul 2018 08:57:20 +0200 Subject: [PATCH] fix post url Signed-off-by: Bjoern Schiessle --- core/js/sharedialogshareelistview.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index 01a96d3c3d..88f116e830 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