summaryrefslogtreecommitdiffstats
path: root/apps/gallery
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-03-30 21:14:01 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2012-03-30 21:14:01 +0200
commit6abb2cb92edc1edaefea7e37cd46a6c866239c27 (patch)
tree8e2ce43ddb1e2f5fc1b8b1ee1f43396d1fc8794f /apps/gallery
parent65eee1f69dbbbe86bb4bf0716a464dc9f2c66a67 (diff)
downloadnextcloud-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.js3
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;