Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

improve code using .hover function instead.

  • Loading branch information...
commit 4aa4e7c9cf4f2b808b294909abd020fd4c783ff5 1 parent 32cfe11
Philip Arndt parndt authored

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. +2 4 public/javascripts/portfolio.js
6 public/javascripts/portfolio.js
@@ -9,7 +9,7 @@ reset_functionality = function() {
9 9 });
10 10
11 11 $('#content #portfolio_images li:not(.empty)').each(function(index, li) {
12   - $(li).mouseover(function(e){
  12 + $(this).hover(function(e){
13 13 if ((image_actions = $(this).find('.image_actions')).length == 0) {
14 14 image_actions = $("<div class='image_actions'></div>");
15 15 img_delete = $("<img src='/images/refinery/icons/delete.png' width='16' height='16' />");
@@ -22,9 +22,7 @@ reset_functionality = function() {
22 22 }
23 23
24 24 image_actions.show();
25   - });
26   -
27   - $(li).mouseout(function(e) {
  25 + }, function(e) {
28 26 $(this).find('.image_actions').hide();
29 27 });
30 28 });

0 comments on commit 4aa4e7c

Please sign in to comment.
Something went wrong with that request. Please try again.