Replace some CSS by some JS (#288)

This commit is contained in:
JocelynDelalande 2017-12-21 20:35:18 +01:00 committed by Alexis Metaireau
parent c6f72e112b
commit 5160dac4a5
2 changed files with 3 additions and 14 deletions

View file

@ -253,12 +253,14 @@ tr.payer_line .balance-name{
opacity: 0.3;
}
.balance.table .action,
.extra-info {
display: none;
}
.balance.table tr:hover .action,
tr:hover .extra-info {
display: inline;
display: initial;
}
/* Fluid Offsets for Boostrap */

View file

@ -14,12 +14,6 @@
autoclose: true,
language: '{{ g.lang }}'
});
// Hide all members actions
$('.action').each(function(){
$(this).hide();
});
// ask for confirmation before removing an user
$('.action.delete').each(function(){
var link = $(this).find('button');
@ -33,13 +27,6 @@
});
});
// display the remove button on mouse over (and hide them per default)
$('.balance tr').hover(function(){
$(this).find('.action').show();
}, function(){
$(this).find('.action').hide();
});
var highlight_owers = function(){
var ower_ids = $(this).attr("owers").split(',');
var payer_id = $(this).attr("payer");