diff options
Diffstat (limited to 'static/js/jams.js')
-rw-r--r-- | static/js/jams.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/static/js/jams.js b/static/js/jams.js index 37d8a764..2ee547fa 100644 --- a/static/js/jams.js +++ b/static/js/jams.js @@ -173,4 +173,28 @@ class Actions { callback ) } + + create_infraction(id, reason, number, callback) { + this.send( + "infraction", + "POST", + { + "participant": id, + "reason": reason, + "number": number + }, + callback + ) + } + + delete_infraction(id, callback) { + this.send( + "infraction", + "DELETE", + { + "id": id, + }, + callback + ) + } }
\ No newline at end of file |