mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-01 02:32:23 +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;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.balance.table .action,
|
||||||
.extra-info {
|
.extra-info {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.balance.table tr:hover .action,
|
||||||
tr:hover .extra-info {
|
tr:hover .extra-info {
|
||||||
display: inline;
|
display: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fluid Offsets for Boostrap */
|
/* Fluid Offsets for Boostrap */
|
||||||
|
|
|
@ -14,12 +14,6 @@
|
||||||
autoclose: true,
|
autoclose: true,
|
||||||
language: '{{ g.lang }}'
|
language: '{{ g.lang }}'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Hide all members actions
|
|
||||||
$('.action').each(function(){
|
|
||||||
$(this).hide();
|
|
||||||
});
|
|
||||||
|
|
||||||
// ask for confirmation before removing an user
|
// ask for confirmation before removing an user
|
||||||
$('.action.delete').each(function(){
|
$('.action.delete').each(function(){
|
||||||
var link = $(this).find('button');
|
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 highlight_owers = function(){
|
||||||
var ower_ids = $(this).attr("owers").split(',');
|
var ower_ids = $(this).attr("owers").split(',');
|
||||||
var payer_id = $(this).attr("payer");
|
var payer_id = $(this).attr("payer");
|
||||||
|
|
Loading…
Reference in a new issue