From 1d88ab57ec31c33e2edcd2bd7e54868927e999e0 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Wed, 7 Mar 2012 16:28:57 +0100
Subject: [PATCH] dont open the album when clicking the remove/rename button

---
 apps/gallery/js/albums.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/gallery/js/albums.js b/apps/gallery/js/albums.js
index c12cbacf5b..3882deb514 100644
--- a/apps/gallery/js/albums.js
+++ b/apps/gallery/js/albums.js
@@ -50,10 +50,12 @@ Albums={
 	  local.attr('data-album',a.name);
 	  $(".gallery_album_decoration a.rename", local).bind('click', {name: a.name},function(event){
 			event.preventDefault();
+			event.stopPropagation();
 			galleryRename(event.data.name);
     });
 	  $(".gallery_album_decoration a.remove", local).bind('click', {name: a.name},function(event){
 		  event.preventDefault();
+		  event.stopPropagation();
 		  galleryRemove(event.data.name);
     });
  //   $("a.view", local).attr('href','?view='+decodeURIComponent(escape(a.name)));
-- 
GitLab