Subversion Repositories SmartDukaan

Rev

Rev 13695 | Rev 13722 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13695 Rev 13719
Line 61... Line 61...
61
				}
61
				}
62
			}
62
			}
63
		});
63
		});
64
		ga('send', 'event', 'product', 'click', $(this).data('id'));
64
		ga('send', 'event', 'product', 'click', $(this).data('id'));
65
	});
65
	});
66
	$('.row').on('click','.likedeal',function(e){			
66
	$('.jscroll-inner').on('click','.likedeal',function(e){	
67
		var that = $(this);
67
		var that = $(this);
68
		if($(that).hasClass('active')){
68
		if($(that).hasClass('active')){
69
			//User has already liked it,so remove like
69
			//User has already liked it,so remove like
70
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/like";	
70
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/like";	
71
		}else{
71
		}else{
Line 111... Line 111...
111
			}
111
			}
112
		});
112
		});
113
		$('#myModal').modal('hide');
113
		$('#myModal').modal('hide');
114
		ga('send', 'event', 'brand', 'hide', $('#myModal').find('#productToHide',0).val());
114
		ga('send', 'event', 'brand', 'hide', $('#myModal').find('#productToHide',0).val());
115
	})
115
	})
116
	$('.row').on('click','.dislikedeal',function(e){			
116
	$('.jscroll-inner').on('click','.dislikedeal',function(e){			
117
		var that = $(this);
117
		var that = $(this);
118
		if($(that).hasClass('active')){
118
		if($(that).hasClass('active')){
119
			//User has already liked it,so remove like
119
			//User has already liked it,so remove like
120
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/dislike";	
120
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/dislike";	
121
		}else{
121
		}else{