aboutsummaryrefslogtreecommitdiffstats
path: root/static/js/jams.js
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-12 13:43:46 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-12 13:43:46 +0100
commitb5b339cdfde254367eccd49d296178314a159ba7 (patch)
treed9b4d463bb3738bd5b561dd08a4313d40fb76308 /static/js/jams.js
parentMerge branch 'log-dir' into 'master' (diff)
[Jams] Approvals interface
Diffstat (limited to 'static/js/jams.js')
-rw-r--r--static/js/jams.js24
1 files changed, 23 insertions, 1 deletions
diff --git a/static/js/jams.js b/static/js/jams.js
index 2ee547fa..b0966550 100644
--- a/static/js/jams.js
+++ b/static/js/jams.js
@@ -197,4 +197,26 @@ class Actions {
callback
)
}
-} \ No newline at end of file
+
+ approve_application(id, callback) {
+ this.send(
+ "approve_application",
+ "POST",
+ {
+ "id": id,
+ },
+ callback
+ )
+ }
+
+ unapprove_application(id, callback) {
+ this.send(
+ "unapprove_application",
+ "POST",
+ {
+ "id": id,
+ },
+ callback
+ )
+ }
+}