Subversion Repositories SmartDukaan

Rev

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

Rev 13599 Rev 13672
Line 43... Line 43...
43
				format: "json"
43
				format: "json"
44
			},
44
			},
45
			// Work with the response
45
			// Work with the response
46
			success: function( response ) {
46
			success: function( response ) {
47
				if(response.success){
47
				if(response.success){
48
					$(that).find('.btn',0).toggleClass('active');
48
					$(that).toggleClass('active');
49
					$(that).parent().find('li.dislikedeal',0).find('.btn',0).removeClass('active');
49
					$(that).parent().find('li.dislikedeal',0).removeClass('active');
50
				}
50
				}
51
			}
51
			}
52
		});
52
		});
53
	});
53
	});
54
	$('.row').on('click','.dislikedeal',function(e){		
54
	$('.row').on('click','.dislikedeal',function(e){		
Line 70... Line 70...
70
				format: "json"
70
				format: "json"
71
			},
71
			},
72
			// Work with the response
72
			// Work with the response
73
			success: function( response ) {
73
			success: function( response ) {
74
				if(response.success){
74
				if(response.success){
75
					$(that).find('.btn',0).toggleClass('active');
75
					$(that).toggleClass('active');
76
					$(that).parent().find('li.likedeal',0).find('.btn',0).removeClass('active');
76
					$(that).parent().find('li.likedeal',0).removeClass('active');
77
				}
77
				}
78
			}
78
			}
79
		});
79
		});
80
	});
80
	});
81
});
81
});