fix brackets & lowstock indication

This commit is contained in:
Ludovic Stephan 2017-02-12 11:09:03 -02:00
parent 99d04fb75e
commit 031b992fa3

View file

@ -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);