From 4a66fe0427aaacac3cbfdf6b2ea47bb3e056e88b Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 19 May 2018 13:53:53 +0100 Subject: [Jams] Linting and infractions --- static/js/jams.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'static') 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 -- cgit v1.2.3