Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improve code using .hover function instead.

  • Loading branch information...
commit 4aa4e7c9cf4f2b808b294909abd020fd4c783ff5 1 parent 32cfe11
Philip Arndt parndt authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 public/javascripts/portfolio.js
6 public/javascripts/portfolio.js
View
@@ -9,7 +9,7 @@ reset_functionality = function() {
});
$('#content #portfolio_images li:not(.empty)').each(function(index, li) {
- $(li).mouseover(function(e){
+ $(this).hover(function(e){
if ((image_actions = $(this).find('.image_actions')).length == 0) {
image_actions = $("<div class='image_actions'></div>");
img_delete = $("<img src='/images/refinery/icons/delete.png' width='16' height='16' />");
@@ -22,9 +22,7 @@ reset_functionality = function() {
}
image_actions.show();
- });
-
- $(li).mouseout(function(e) {
+ }, function(e) {
$(this).find('.image_actions').hide();
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.