add low stock css to WS

This commit is contained in:
Ludovic Stephan 2017-02-05 21:38:13 -02:00
parent 95e96d8ce5
commit 2394a5e5d2

View file

@ -1335,6 +1335,8 @@ $(document).ready(function() {
} }
for (var i=0; i<data['articles'].length; i++) { for (var i=0; i<data['articles'].length; i++) {
article = data['articles'][i]; article = data['articles'][i];
articles_container.find('#data-article-'+article['id'])
.addClass('low-stock');
articles_container.find('#data-article-'+article['id']+' .stock') articles_container.find('#data-article-'+article['id']+' .stock')
.text(article['stock']); .text(article['stock']);
} }