]> source.dussan.org Git - nextcloud-server.git/commitdiff
gallery works in safari now
authorBartek Przybylski <bart.p.pl@gmail.com>
Wed, 1 Feb 2012 21:15:01 +0000 (22:15 +0100)
committerBartek Przybylski <bart.p.pl@gmail.com>
Wed, 1 Feb 2012 21:15:46 +0000 (22:15 +0100)
apps/gallery/js/albums.js

index 59efb5b5659a05096ba4c281156d57ae591a48c4..d2b4d858b5580459d080cbfe5a96abac7c1fb044 100644 (file)
@@ -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);