summaryrefslogtreecommitdiff
path: root/public/static/js/travelynx-actions.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-02 21:35:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-02 21:35:53 +0100
commitf87306dc34e91ade3e55d67ac776fd5c7fd3bb15 (patch)
tree47be4ecfc7539b1abecb7198f4d8c8d0b9611755 /public/static/js/travelynx-actions.js
parent6933b8ee45bee33562ac3bf9cd864e6d09e6917b (diff)
allow undo for checkins
Diffstat (limited to 'public/static/js/travelynx-actions.js')
-rw-r--r--public/static/js/travelynx-actions.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/static/js/travelynx-actions.js b/public/static/js/travelynx-actions.js
index 70c5d39..86ad87d 100644
--- a/public/static/js/travelynx-actions.js
+++ b/public/static/js/travelynx-actions.js
@@ -39,4 +39,11 @@ $(document).ready(function() {
link.data('force', true);
});
});
+ $('.action-undo').click(function() {
+ var link = $(this);
+ var req = {
+ action: 'undo',
+ };
+ tvly_run(link, req, window.location.href);
+ });
});