summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-02-01 22:15:01 +0100
committerBartek Przybylski <bart.p.pl@gmail.com>2012-02-01 22:15:46 +0100
commitf1982965769ac30f00bb36ab3c672815d1a0d09b (patch)
tree60d38fe511f48bdec874b635980c18cde1ea24fb /apps
parentf999fbf81a142b2695bf3fffcf66e430efb71c44 (diff)
downloadnextcloud-server-f1982965769ac30f00bb36ab3c672815d1a0d09b.tar.gz
nextcloud-server-f1982965769ac30f00bb36ab3c672815d1a0d09b.zip
gallery works in safari now
Diffstat (limited to 'apps')
-rw-r--r--apps/gallery/js/albums.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/gallery/js/albums.js b/apps/gallery/js/albums.js
index 59efb5b5659..d2b4d858b55 100644
--- a/apps/gallery/js/albums.js
+++ b/apps/gallery/js/albums.js
@@ -46,14 +46,14 @@ Albums={
var a = Albums.albums[i];
var local=$(displayTemplate);
local.attr('data-album',a.name);
- $(".gallery_album_decoration a.rename", local).click(function(name,event){
+ $(".gallery_album_decoration a.rename", local).bind('click', {name: a.name},function(event){
event.preventDefault();
- galleryRename(name);
- }.bind(null,a.name));
- $(".gallery_album_decoration a.remove", local).click(function(name,event){
+ galleryRename(event.data.name);
+ });
+ $(".gallery_album_decoration a.remove", local).bind('click', {name: a.name},function(event){
event.preventDefault();
- galleryRemove(name);
- }.bind(null,a.name));
+ galleryRemove(a.data.name);
+ });
$("a.view", local).attr('href','?view='+a.name);
$('h1',local).text(a.name);
$(".gallery_album_cover", local).attr('title',a.name);