11 lines
No EOL
290 B
JavaScript
11 lines
No EOL
290 B
JavaScript
function spam(commentID) {
|
|
$.post(learncommentPath, {id: commentID, category: 'spam'}).done(function() {
|
|
location.reload();
|
|
});
|
|
}
|
|
|
|
function ham(commentID) {
|
|
$.post(learncommentPath, {id: commentID, category: 'ham'}).done(function() {
|
|
location.reload();
|
|
});
|
|
} |