mail preview (basic functionality)

This commit is contained in:
zotlabs
2016-12-13 17:30:02 -08:00
parent c4a9b61da6
commit f111c5c325
3 changed files with 62 additions and 1 deletions

View File

@@ -1146,6 +1146,25 @@ function preview_post() {
return true;
}
function preview_mail() {
$("#mail-preview").val("1");
$("#mail-preview-content").show();
$.post(
"mail",
$("#prvmail-form").serialize(),
function(data) {
if(data.preview) {
$("#mail-preview-content").html(data.preview);
$("#mail-preview-content" + " a").click(function() { return false; });
}
},
"json"
);
$("#mail-preview").val("0");
return true;
}
function unpause() {
// unpause auto reloads if they are currently stopped
totStopped = false;