post preview

This commit is contained in:
friendica 2012-01-09 20:03:00 -08:00
parent 805eb35a1a
commit 7011f71e8f
8 changed files with 21 additions and 9 deletions

View file

@ -423,7 +423,7 @@
if(data.preview) {
$("#comment-edit-preview-" + id).html(data.preview);
$("#comment-edit-preview-" + id + " a").removeAttr('href');
$("#comment-edit-preview-" + id + " a").click(function() { return false; });
}
},
"json"
@ -443,12 +443,12 @@
function(data) {
if(data.preview) {
$("#jot-preview-content").html(data.preview);
$("#jot-preview-content" + " a").removeAttr('href');
$("#jot-preview-content" + " a").click(function() { return false; });
}
},
"json"
);
$("#jot-preview").val("1");
$("#jot-preview").val("0");
return true;
}