This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/assets/javascripts/user_record.js
2013-10-26 18:06:58 -05:00

20 lines
396 B
JavaScript
Executable File

(function($) {
UserRecord = {
destroy: function(id) {
notice('Deleting record #' + id)
$.ajax({
url: Moebooru.path('/user_record/destroy.json'),
type: 'delete',
data: {
"id": id
}
}).done(function(r) {
notice('Record deleted');
}).fail(function() {
notice('Access denied');
});
}
}
}) (jQuery);