Inital commit

This commit is contained in:
2020-11-19 15:36:28 +01:00
parent 71f32f83d3
commit 66ce4ee218
18077 changed files with 2166122 additions and 35184 deletions

View File

@@ -0,0 +1 @@
89824f94200dd48b062bc70d6886744b

View File

@@ -0,0 +1,29 @@
$(document).ready(function() {
$("#hookanalytics-form").on("submit", function(e, data){
e.preventDefault();
var form = $(this);
$('body').append('<div class="modal-backdrop fade in" id="loading-event"><div class="loading"></div></div>');
$.ajax({
url: form.attr('action'),
type: form.attr('method'),
data: form.serialize()
}).done(function(){
$("#loading-event").remove();
})
.success(function(data) {
if (data.error != 0) {
$("#loading-event").remove();
$('#hookanalytics-failed-body').html(data.message);
$("#hookanalytics-failed").modal("show");
}
})
.fail(function(jqXHR, textStatus, errorThrown){
$("#loading-event").remove();
$('#hookanalytics-failed-body').html(jqXHR.responseJSON.message);
$("#hookanalytics-failed").modal("show");
});
});
});