From a13156c0f31bebd11569edcf587c678a89cd4175 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 9 Jan 2012 18:52:49 -0800 Subject: bypass D* markdown bug for now --- js/main.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'js/main.js') 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 -- cgit v1.2.3