Replace some CSS by some JS

This commit is contained in:
Jocelyn Delalande 2017-12-21 17:09:13 +01:00
parent c6f72e112b
commit 6a3f358181
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");