export
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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...")
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user