update
This commit is contained in:
parent
f81ea44869
commit
e40afeaf90
|
|
@ -337,7 +337,7 @@
|
|||
});
|
||||
|
||||
let comparedItems = JSON.parse(localStorage.getItem('compared_product'));
|
||||
$('#compare-items-count').append(comparedItems.length);
|
||||
$('#compare-items-count').html(comparedItems ? comparedItems.length : 0);
|
||||
|
||||
function toggleDropdown(e) {
|
||||
var currentElement = $(e.currentTarget);
|
||||
|
|
|
|||
|
|
@ -82,6 +82,9 @@
|
|||
this.$root.addFlashMessages()
|
||||
}
|
||||
}
|
||||
|
||||
let comparedItems = JSON.parse(localStorage.getItem('compared_product'));
|
||||
$('#compare-items-count').html(comparedItems ? comparedItems.length : 0);
|
||||
},
|
||||
|
||||
'getStorageValue': function (key) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue