From 9bbc0d19ce19d63bac9cc931cbf8c7c7c19c5249 Mon Sep 17 00:00:00 2001 From: Rober Torkuhl Date: Sat, 9 Mar 2013 21:39:01 +0100 Subject: [PATCH] show edit buttons only on mouse over --- pinry/static/js/pinry.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pinry/static/js/pinry.js b/pinry/static/js/pinry.js index 953bc70..f985795 100644 --- a/pinry/static/js/pinry.js +++ b/pinry/static/js/pinry.js @@ -64,6 +64,16 @@ $(window).load(function() { }); }); + // Show edit-buttons only on mouse over + $('.pin').each(function(){ + var thisPin = $(this); + thisPin.find('.editable').hide(); + thisPin.unbind('hover'); + thisPin.hover(function() { + thisPin.find('.editable').toggle(); + }); + }); + $('.spinner').css('display', 'none'); blockContainer.css('height', colHeights.sort().slice(-1)[0]); }