diff --git a/assets/css/list.css b/assets/css/list.css index 5395501..37a43d5 100644 --- a/assets/css/list.css +++ b/assets/css/list.css @@ -48,6 +48,8 @@ width: 200px; height: 50px; overflow: hidden; + font-size: 0.8rem; + line-height: 25px; } .list-price { diff --git a/assets/js/listManager.js b/assets/js/listManager.js index 5784de4..2041844 100644 --- a/assets/js/listManager.js +++ b/assets/js/listManager.js @@ -129,8 +129,10 @@ class ListManager { } else { if (this.editableTypes[i]['name'] === 'icon') formData += ""; - formData += ''; - + if (this.editableTypes[i]['name'] === 'description') + formData += ''; + else + formData += ''; } } formData += ""; @@ -210,9 +212,7 @@ class ListManager { if (index === -1) index = this.displayedData.length - 1; let iconContainer = this.displayedData[index].find(".list-category"); - for (let i = 0; i < categories.length; i++) { - iconContainer.html(this.getCategoryIcons(this.currentData[index]['id'])); - } + iconContainer.html(this.getCategoryIcons(this.currentData[index]['id'])); } updateAssociationList(articleId, newCategories) { @@ -229,6 +229,8 @@ class ListManager { } updateArticleImage(image, index) { + if (index === -1) + index = this.displayedData.length - 1; $(this.displayedData[index].find("img")[0]).attr('src', window.URL.createObjectURL(image)); }