summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-11-24 15:57:33 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-11-24 15:57:33 +0100
commitd3a0150fba2bf1881827ec2f3acaee15be0a1dcd (patch)
tree046f35458bea625f40dcec333f1988417ddc304f /static
parentd5a96e1d7af0a964806333ef22ec707966e35e7b (diff)
Have the wiki server return wikilinkified content to the client after submission.
Diffstat (limited to 'static')
-rw-r--r--static/js/wiki.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/static/js/wiki.js b/static/js/wiki.js
index 4f13af3..4cffdab 100644
--- a/static/js/wiki.js
+++ b/static/js/wiki.js
@@ -5,12 +5,15 @@ if (!mulk) {
}
mulk.savePage = function() {
- $.ajax({
+ jQuery.ajax({
url: "?save",
data: { content: $('#wiki-page-content').html() },
type: "POST",
- success: function() {
+ dataType: "text",
+ success: function(data) {
mulk.savePage();
+ console.log(data);
+ jQuery('#wiki-page-content').html(data);
console.log('Success.');
},
error: function() {