Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
-Subproject commit 720e326185b09135267b32e2c85ca3d7beba37f2
+Subproject commit 8b6e9f4e18cb8fbce6bb44f88474493476daf87e
function previewWiki(idFrom, idTo, withTitle, idShow)
{
- var text = encodeURIComponent(document.getElementById(idFrom).value);
+ var text = document.getElementById(idFrom).value;
if (text == "") {
return false;
}
if (!withTitle) {
url += "/notitle";
}
- Ajax.update_html(idTo, url + "?text=" + text);
+ $.post(url, { text: text },
+ function(data) {
+ $("#" + idTo).html(data);
+ },
+ 'text');
if (idShow != null) {
document.getElementById(idShow).style.display = "";
}