diff options
Diffstat (limited to 'js/main.js')
-rw-r--r-- | js/main.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js index 009fb55bb..be6b5dbae 100644 --- a/js/main.js +++ b/js/main.js @@ -433,6 +433,25 @@ + function preview_post() { + $("#jot-preview").val("1"); + $("#jot-preview-content").show(); + tinyMCE.triggerSave(); + $.post( + "item", + $("#profile-jot-form").serialize(), + function(data) { + if(data.preview) { + $("#jot-preview-content").html(data.preview); + $("#jot-preview-content" + " a").removeAttr('href'); + } + }, + "json" + ); + $("#jot-preview").val("1"); + return true; + } + function unpause() { // unpause auto reloads if they are currently stopped |