summaryrefslogtreecommitdiffstats
path: root/apps/gallery/js
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-02-25 20:37:51 +0100
committerBartek Przybylski <bart.p.pl@gmail.com>2012-02-25 20:38:22 +0100
commit8fe5251029c9e3c711660abcb58c7e60f6b88f97 (patch)
treefbb3797fc8018c6fc1c03dcfaa5619c1ab9c604a /apps/gallery/js
parent4f627c428eb64fae307ea293e8093e345d742edc (diff)
downloadnextcloud-server-8fe5251029c9e3c711660abcb58c7e60f6b88f97.tar.gz
nextcloud-server-8fe5251029c9e3c711660abcb58c7e60f6b88f97.zip
unicode chars in gallery name fix
Diffstat (limited to 'apps/gallery/js')
-rw-r--r--apps/gallery/js/albums.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gallery/js/albums.js b/apps/gallery/js/albums.js
index 987412f28e0..adecd24cc75 100644
--- a/apps/gallery/js/albums.js
+++ b/apps/gallery/js/albums.js
@@ -54,9 +54,9 @@ Albums={
event.preventDefault();
galleryRemove(event.data.name);
});
- $("a.view", local).attr('href','?view='+escape(a.name));
- $('h1',local).text(a.name);
- $(".gallery_album_cover", local).attr('title',a.name);
+ $("a.view", local).attr('href','?view='+decodeURIComponent(escape(a.name)));
+ $('h1',local).text(decodeURIComponent(escape(a.name)));
+ $(".gallery_album_cover", local).attr('title',decodeURIComponent(escape(a.name)));
$(".gallery_album_cover", local).css('background-repeat', 'no-repeat');
$(".gallery_album_cover", local).css('background-position', '0');
$(".gallery_album_cover", local).css('background-image','url("ajax/galleryOp.php?operation=get_covers&albumname='+escape(a.name)+'")');