aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-09 18:52:49 -0800
committerfriendica <info@friendica.com>2012-01-09 18:52:49 -0800
commita13156c0f31bebd11569edcf587c678a89cd4175 (patch)
tree2c4239a925bbd2c38a69d1a9a5807b23027201ba /js
parent3bdcb5247105f41a1b436cd00727148cda2f90b9 (diff)
downloadvolse-hubzilla-a13156c0f31bebd11569edcf587c678a89cd4175.tar.gz
volse-hubzilla-a13156c0f31bebd11569edcf587c678a89cd4175.tar.bz2
volse-hubzilla-a13156c0f31bebd11569edcf587c678a89cd4175.zip
bypass D* markdown bug for now
Diffstat (limited to 'js')
-rw-r--r--js/main.js19
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