WIP: Aureplop/kpsul js refactor #501

Draft
delobell wants to merge 215 commits from aureplop/kpsul_js_refactor into master
Showing only changes of commit 08d1521d81 - Show all commits

View file

@ -417,12 +417,12 @@ class ArticleManager {
update_data(data) {
for (let article_dict of data) {
article = this.list.find(Article, {'id': article_dict['id']});
article = this.list.find('article', article_dict['id']);
// For now, article additions are disregarded
if (article) {
article.stock = article_dict['stock'];
this._$container.find('#data-article-'+article_dict['id']+' .stock')
this._$container.find('#article-'+article_dict['id']+' .stock')
.text(article_dict['stock']);
}
}