Subversion Repositories SmartDukaan

Rev

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

Rev 14135 Rev 14139
Line 200... Line 200...
200
			//User has already liked it,so remove like
200
			//User has already liked it,so remove like
201
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/dislike";	
201
			var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/dislike";	
202
		}else{
202
		}else{
203
			console.log('show modal');
203
			console.log('show modal');
204
			$('#myModal').find('#productToHide',0).val($(this).data('id'));
204
			$('#myModal').find('#productToHide',0).val($(this).data('id'));
205
			$('#myModal').modal();
205
			//$('#myModal').modal();
206
			var url = apihost+"/user_actions/update/"+me+"/"+$(this).data('id')+"/dislike";
206
			var url = apihost+"/user_actions/update/"+me+"/"+$(this).data('id')+"/dislike";
207
		}
207
		}
208
		$.ajax({
208
		$.ajax({
209
			url: url,
209
			url: url,
210
			// The name of the callback parameter, as specified by the YQL service
210
			// The name of the callback parameter, as specified by the YQL service