Automatic webhook creation and deletion, Resolves #42

This commit is contained in:
Jeremy Zhang
2017-08-27 21:41:36 +00:00
parent 8038a1b4fc
commit 654dd3faf3
11 changed files with 225 additions and 8 deletions

View File

@ -16,6 +16,15 @@ $('#visitor_view').change(function() {
});
});
$('#webhook_messages').change(function() {
var pathname = window.location.pathname;
var checked = $(this).is(':checked')
var payload = {"webhook_messages": checked}
$.post(pathname, payload, function(data) {
Materialize.toast('Updated webhook messages setting!', 2000)
});
});
$('#chat_links').change(function() {
var pathname = window.location.pathname;
var checked = $(this).is(':checked')