Permalink
Browse files

support deletion from mosaic

  • Loading branch information...
1 parent ade697c commit fa5754d1688fcd9f5aac69b86d2e45170ce10701 @anotherjesse committed Feb 14, 2009
Showing with 23 additions and 3 deletions.
  1. +7 −2 chrome/content/mosaic.js
  2. +16 −0 chrome/skin/hoverbox.css
  3. +0 −1 todo
View
@@ -72,13 +72,18 @@ function Mosaic(container) {
IMG({src: tab.thumbURL})
),
DIV({'class': 'preview'},
- IMG({src: tab.imageURL}),
- SPAN(tab.title || '')
+ IMG({src: tab.imageURL}),
+ SPAN(tab.title || ''),
+ DIV({'class': 'delete'}, 'x')
)
);
box.onclick = function(event) {
currentUrl = tab.url;
+ if (event && event.originalTarget.className.search('delete') != -1) {
+ return controller.tabDelete(tab, box);
+ }
+
var updatedTab = SVC.getForURL(tab.url);
img.setAttribute('src', updatedTab.imageURL);
$(title).trigger('update', [updatedTab.title]);
View
@@ -55,6 +55,22 @@
}
+.mosaic #content li:hover .delete
+{
+ position: absolute;
+ top: 0px;
+ right: 0px;
+ background: #888;
+ padding: 3px 8px;
+ color: #fff;
+ -moz-border-radius: 0 0 0 8px;
+}
+
+.mosaic #content li:hover .delete:hover
+{
+ background: #f00;
+}
+
.mosaic #content li:hover span {
position: absolute;
top: 0px;
View
1 todo
@@ -1,4 +1,3 @@
-visualization - mosaic view - http://www.coverpop.com/pop/indie/
support drag and drop into bookmarkbar/... (dnd flavors)
fix https://bugzilla.mozilla.org/show_bug.cgi?id=393716 and adapt taboo

0 comments on commit fa5754d

Please sign in to comment.