Subversion Repositories SmartDukaan

Rev

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

Rev 18015 Rev 18017
Line 418... Line 418...
418
		properties.source = String($(this).data('source'));
418
		properties.source = String($(this).data('source'));
419
		properties.url = encodeURIComponent($(this).data('url'));
419
		properties.url = encodeURIComponent($(this).data('url'));
420
		properties.price = String($(this).data('price'));
420
		properties.price = String($(this).data('price'));
421
		pma.send('products','url','click',me,properties);
421
		pma.send('products','url','click',me,properties);
422
	});
422
	});
423
	$(document).on('click','.likeit',function(e){	
423
	$('.jscroll-inner').on('click','.likeit',function(e){	
424
		var that = $(this);
424
		var that = $(this);
425
		if($(that).find('span.likedeal').hasClass('active')){
425
		if($(that).find('span.likedeal').hasClass('active')){
426
			//User has already liked it,so remove like
426
			//User has already liked it,so remove like
427
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/like";	
427
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/like";	
428
		}else{
428
		}else{
Line 470... Line 470...
470
		});
470
		});
471
		$('#myModal').modal('hide');
471
		$('#myModal').modal('hide');
472
		ga('send', 'event', 'brand', 'hide', $('#myModal').find('#productToHide',0).val());
472
		ga('send', 'event', 'brand', 'hide', $('#myModal').find('#productToHide',0).val());
473
		pma.send('brands','hide',$('#myModal').find('#productToHide',0).val(),me);
473
		pma.send('brands','hide',$('#myModal').find('#productToHide',0).val(),me);
474
	})
474
	})
475
	// $('.jscroll-inner').on('click','.dislikeit',function(e){			
475
	$('.jscroll-inner').on('click','.dislikeit',function(e){			
476
    $(document).on('click','.dislikeit',function(e){            
-
 
477
		var that = $(this);
476
		var that = $(this);
478
		if($(that).find('span.dislikedeal').hasClass('active')){
477
		if($(that).find('span.dislikedeal').hasClass('active')){
479
			//User has already liked it,so remove like
478
			//User has already liked it,so remove like
480
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/dislike";	
479
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/dislike";	
481
		}else{
480
		}else{