Skip to content
Snippets Groups Projects
Commit 6abb2cb9 authored by Bartek Przybylski's avatar Bartek Przybylski
Browse files

fix sharing nested galleries

parent 65eee1f6
Branches
No related tags found
No related merge requests found
......@@ -43,8 +43,9 @@ function shareGallery() {
{text: 'Shared gallery address', name: 'address', type: 'text', value: existing_token}];
OC.dialogs.form(form_fields, t('gallery', 'Share gallery'), function(values){
var p = '';
for (var i in paths) p += '/'+paths[i];
for (var i in paths) p += paths[i]+'/';
if (p == '') p = '/';
alert(p);
$.getJSON(OC.filePath('gallery', 'ajax', 'galleryOp.php'), {operation: 'share', path: p, share: values[0].value, recursive: values[1].value}, function(r) {
if (r.status == 'success') {
Albums.shared = r.sharing;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment