mirror of
https://github.com/pinry/pinry.git
synced 2026-02-05 05:59:37 +01:00
Merged in rocco_storm/pinry (pull request #1)
show edit buttons only on mouse over (new)
This commit is contained in:
@@ -51,6 +51,7 @@ $(window).load(function() {
|
||||
// Delete pin if trash icon clicked
|
||||
$('.icon-trash').each(function() {
|
||||
var thisPin = $(this);
|
||||
$(this).off('click');
|
||||
$(this).click(function() {
|
||||
$(this).off('click');
|
||||
var promise = deletePinData($(this).data('id'));
|
||||
@@ -64,6 +65,16 @@ $(window).load(function() {
|
||||
});
|
||||
});
|
||||
|
||||
// Show edit-buttons only on mouse over
|
||||
$('.pin').each(function(){
|
||||
var thisPin = $(this);
|
||||
thisPin.find('.editable').hide();
|
||||
thisPin.off('hover');
|
||||
thisPin.hover(function() {
|
||||
thisPin.find('.editable').toggle();
|
||||
});
|
||||
});
|
||||
|
||||
$('.spinner').css('display', 'none');
|
||||
blockContainer.css('height', colHeights.sort().slice(-1)[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user