From 0d900eadbb5fb6fbfbd7638e336604c2b4b626eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sat, 3 Sep 2016 22:43:45 +0200 Subject: [PATCH] Ajout buttons K-Psul pour RAZ (F1) et majoration (F9) --- kfet/static/kfet/css/kpsul.css | 14 +++----------- kfet/templates/kfet/kpsul.html | 10 ++++++++++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/kfet/static/kfet/css/kpsul.css b/kfet/static/kfet/css/kpsul.css index c2d7f1ff..4fc205f3 100644 --- a/kfet/static/kfet/css/kpsul.css +++ b/kfet/static/kfet/css/kpsul.css @@ -228,7 +228,7 @@ input[type=number]::-webkit-outer-spin-button { #special_operations button { height:100%; - width:50%; + width:25%; float:left; @@ -239,18 +239,10 @@ input[type=number]::-webkit-outer-spin-button { font-weight:bold; } -#special_operations button:focus { +#special_operations button:focus, #special_operations button:hover { outline:none; -} - -#operation_deposit:focus, #operation_deposit:hover { background:#000; - color:#FFF; -} - -#operation_withdraw:focus, #operation_withdraw:hover { - background:#000; - color:#FFF; + color:#fff; } /* Article autocomplete */ diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html index e42743cc..7167f2ff 100644 --- a/kfet/templates/kfet/kpsul.html +++ b/kfet/templates/kfet/kpsul.html @@ -65,6 +65,8 @@
+ +
@@ -1142,6 +1144,14 @@ $(document).ready(function() { // Shorcuts + $('#cool_reset').click(function() { + coolReset(); + }); + + $('#ask_addcost').click(function() { + askAddcost(); + }); + $(document).on('keydown', function(e) { switch (e.keyCode) { case 112: