diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-03-30 21:14:01 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-03-30 21:14:01 +0200 |
commit | 6abb2cb92edc1edaefea7e37cd46a6c866239c27 (patch) | |
tree | 8e2ce43ddb1e2f5fc1b8b1ee1f43396d1fc8794f /apps/gallery | |
parent | 65eee1f69dbbbe86bb4bf0716a464dc9f2c66a67 (diff) | |
download | nextcloud-server-6abb2cb92edc1edaefea7e37cd46a6c866239c27.tar.gz nextcloud-server-6abb2cb92edc1edaefea7e37cd46a6c866239c27.zip |
fix sharing nested galleries
Diffstat (limited to 'apps/gallery')
-rw-r--r-- | apps/gallery/js/album_cover.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gallery/js/album_cover.js b/apps/gallery/js/album_cover.js index 061bbcd0b47..cd260019642 100644 --- a/apps/gallery/js/album_cover.js +++ b/apps/gallery/js/album_cover.js @@ -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; |