mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-30 10:12:37 +02:00
Replace some CSS by some JS (#288)
This commit is contained in:
parent
c6f72e112b
commit
5160dac4a5
2 changed files with 3 additions and 14 deletions
|
@ -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 */
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue