Authored by htoooth

add fav

... ... @@ -570,10 +570,11 @@ bindEvent.add(function() {
dialog.$el.on('click', '.ok', function() {
var $this = $(this),
sku = $this.data('sku'),
isFav = dialog.$el.find('.active').length === 1;
getFav = dialog.$el.find('.active').length === 1,
isFaved = $('#collect-product').hasClass('coled');
notify.addAsync(skn, sku).then(function() {
if (isFav) {
if (!isFaved && getFav) {
$('#collect-product').triggerHandler('click');
}
... ...