From 031b992fa3b8dd0c899830ff75eee50e9476be3b Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sun, 12 Feb 2017 11:09:03 -0200 Subject: [PATCH] fix brackets & lowstock indication --- kfet/templates/kfet/kpsul.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html index 636a755d..d5ca2810 100644 --- a/kfet/templates/kfet/kpsul.html +++ b/kfet/templates/kfet/kpsul.html @@ -857,10 +857,10 @@ $(document).ready(function() { .find('.number').text('('+nb+'/'+article_data[4]+')').end() .find('.name').text(article_data[0]).end() .find('.amount').text(amountToUKF(amount_euro, account_data['is_cof'])); + basket_container.prepend(article_basket_html); if (is_low_stock(id, nb)) article_basket_html.find('.lowstock') .show(); - basket_container.prepend(article_basket_html); updateBasketRel(); } } @@ -1003,7 +1003,7 @@ $(document).ready(function() { if (nb_before > 0) { var article_html = basket_container.find('[data-opeindex='+opeindex+']'); article_html.find('.amount').text(amountUKF_after).end() - .find('.number').text(nb_after+'/'+article_data[4]).end() ; + .find('.number').text('('+nb_after+'/'+article_data[4]+')').end() ; } else { article_html = $(item_basket_default_html);