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

20 lines
396 B
JavaScript
Raw Normal View History

2013-10-27 01:06:58 +02:00
(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);