Commits

rocco_storm  committed 9bbc0d1

show edit buttons only on mouse over

  • Participants
  • Parent commits b0d1cb4

Comments (0)

Files changed (1)

File pinry/static/js/pinry.js

             });
         });
 
+        // 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]);
     }