﻿function deleteComment(id) {
	if(!confirm('Are you sure you want to delete this comment?')) return false;
	
	$.post('/comments/delete/' + id, null, function(data, textStatus) {
		var li = $("#comment_" + id);
		li.fadeOut("normal", function() {
			li.remove();
		});
	});
}

function approveComment(id) {
	$.post('/comments/approve/' + id, null, function (data, textStatus) {
		var li = $("#comment_" + id);
		li.css("background-color", "#cfc");
	});
}
