From 208029f41db2d5e4924203630369d9ce45d8e5be Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Sat, 28 Oct 2017 11:54:12 +0200 Subject: [PATCH] "Plus de hauteur" --- static/scripts/tetalab.js | 5 +++++ static/style/style.css | 6 +++--- tetastock.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/static/scripts/tetalab.js b/static/scripts/tetalab.js index a1855d7..a26f29e 100644 --- a/static/scripts/tetalab.js +++ b/static/scripts/tetalab.js @@ -624,6 +624,11 @@ function add_kit_componant(kit_id, componant_id) { alert('La quantité doit être au moins égale à 1'); return; } + if (isNaN(quantity)){ + alert('La quantité doit être un nombre.'); + return; + } + setcookie('kc_quantity', quantity, 30); setcookie('kc_componant_id', componant_id, 30); var xhttp = new XMLHttpRequest(); diff --git a/static/style/style.css b/static/style/style.css index 7dd2aa2..6d6e276 100644 --- a/static/style/style.css +++ b/static/style/style.css @@ -92,7 +92,7 @@ span.top_menu_item:hover, span.top_menu_item_selected:hover { } div.content_wrapper { - height: 497px; + height: 552px; width: 1280px; } @@ -104,7 +104,7 @@ div.left_menu { overflow-y: auto; overflow-x: hidden; width: 249px; - height: 495px; + height: 550px; line-height: 50px; } @@ -141,7 +141,7 @@ div.content { top: 102px; left: 260px; width: 1010px; - height: 475px; + height: 530px; background-color: #E5E5E5; overflow-y: auto; padding: 10px; diff --git a/tetastock.py b/tetastock.py index bbf46f5..776dc9b 100755 --- a/tetastock.py +++ b/tetastock.py @@ -140,7 +140,7 @@ def resume_session(func): def check(*args, **kwargs): # A motherfuckin' bunch of defaults values empty=u'' - limit = 10 + limit = 12 offset = 0 page = 1 nexthop = offset + limit