aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney
diff options
context:
space:
mode:
authorJocelynDelalande <JocelynDelalande@users.noreply.github.com>2017-12-21 20:35:18 +0100
committerAlexis Metaireau <alexis@notmyidea.org>2017-12-21 20:35:18 +0100
commit5160dac4a56fcd9ae3d30d96d9bb4f827000fc57 (patch)
treeac6ad95eab29f59680500a54c50043e8270467b5 /ihatemoney
parentc6f72e112ba3d797e71302d96504bbd54c83ca6b (diff)
downloadihatemoney-mirror-5160dac4a56fcd9ae3d30d96d9bb4f827000fc57.zip
ihatemoney-mirror-5160dac4a56fcd9ae3d30d96d9bb4f827000fc57.tar.gz
ihatemoney-mirror-5160dac4a56fcd9ae3d30d96d9bb4f827000fc57.tar.bz2
Replace some CSS by some JS (#288)
Diffstat (limited to 'ihatemoney')
-rw-r--r--ihatemoney/static/css/main.css4
-rw-r--r--ihatemoney/templates/list_bills.html13
2 files changed, 3 insertions, 14 deletions
diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css
index 73802a4..fa8ad56 100644
--- a/ihatemoney/static/css/main.css
+++ b/ihatemoney/static/css/main.css
@@ -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 */
diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html
index e4034d4..81f8cd5 100644
--- a/ihatemoney/templates/list_bills.html
+++ b/ihatemoney/templates/list_bills.html
@@ -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");