This commit is contained in:
gauthiier
2019-12-26 18:12:49 +01:00
parent 9c8f5b0e5e
commit 0b7564d44b
10 changed files with 366 additions and 5 deletions
+18
View File
@@ -40,3 +40,21 @@ bb {
li button {
margin-top: 0em;
}
.header {
font-weight: bold;
}
.payload {
white-space: pre-wrap;
font-family: monospace;
display: block;
unicode-bidi: embed;
border: 2px solid red;
word-wrap: break-word;
word-break: break-all;
}
.mail {
width: 35em;
}
+25
View File
@@ -26,4 +26,29 @@ $(document).ready(function(){
});
});
$('.export').click(function(e) {
var form = $(this).parent("form");
var g = form.serialize() + "&tagid=" + form.data('tagid') + "&action=export";
$('#status').text("Exporting - " + form.data('tagid'))
$.post('/export', g, function(d) {
if(d === 'ok') {
$('#status').text("Exporting - " + form.data('tagid') + " - success!!!")
} else {
$('#status').text("Exporting - " + form.data('tagid') + " - error...")
}
});
});
$('#export_all').click(function(a){
var g = "&action=export_all";
$('#status').text("Exporting - all")
$.post('/export', g, function(d) {
if(d === 'ok') {
$('#status').text("Exporting - all - success!!!")
} else {
$('#status').text("Exporting - all - error...")
}
});
});
});