Skip to content

Commit

Permalink
List actions hovers
Browse files Browse the repository at this point in the history
  • Loading branch information
klevo committed Dec 24, 2008
1 parent 48c0578 commit ba11abc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
$.jlm.component('ListItemActions', '*', function() {
var actionHandleEls = $('.list li');

if (actionHandleEls.size() < 1) return;

var itemActionsTimeout = null;

actionHandleEls.hover( // Over
function(){
if (itemActionsTimeout) {
// Cancel all to be closed and hide them
clearTimeout(itemActionsTimeout);
$('.row-actions:visible').hide();
}

$(this).find('.row-actions').show();
}, // Out
function(){
if (itemActionsTimeout) {
clearTimeout(itemActionsTimeout);
}

var el = this;

itemActionsTimeout = setTimeout(function() {
if ($.browser.msie) { // IE7 does not handle animations well, therefore use plain hide()
$(el).find('.row-actions').hide();
}
else {
$(el).find('.row-actions').fadeOut(500);
}
}, 1000);
});

});
5 changes: 1 addition & 4 deletions app/webroot/wildflower/css/wf.main.css
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,9 @@ h2 {
top: 4px;
right: 4px;
display: none;
font-size: 12px;
}

.list li:hover > .row-actions {
display: block;
}

.post-categories {
color: #535353;
margin: 1px 0 0 24px;
Expand Down
Binary file added docs/photoshop/view-labels.psd
Binary file not shown.

0 comments on commit ba11abc

Please sign in to comment.