Subversion Repositories SmartDukaan

Rev

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

Rev 18119 Rev 18145
Line 63... Line 63...
63
 
63
 
64
$(function(){	
64
$(function(){	
65
	if($('.scrollselector > .card').length>0) {
65
	if($('.scrollselector > .card').length>0) {
66
		setTimeout(function(){ document.location.reload(); }, 1000*15*60);
66
		setTimeout(function(){ document.location.reload(); }, 1000*15*60);
67
		if(typeof noscrolling == 'undefined') {
67
		if(typeof noscrolling == 'undefined') {
68
			$('.scrollselector').jscroll({
68
			defaultScroller = $('.scrollselector').jscroll({
69
				loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
69
				loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
70
			    autoTriggerUntil: 3,
70
			    autoTriggerUntil: 3,
71
			    padding: 20,
71
			    padding: 20,
72
			    callback:loadCartDetails
72
			    callback:loadCartDetails
73
			});
73
			});
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){			
-
 
476
    $(document).on('click','.dislikeit',function(e){            
475
    $(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";