disinclined.org
/
git
/
dylansserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now loads new comment after posting
[dylansserver.git]
/
includes
/
ajax.js
diff --git
a/includes/ajax.js
b/includes/ajax.js
index
50541dc
..
afc73e8
100644
(file)
--- a/
includes/ajax.js
+++ b/
includes/ajax.js
@@
-25,6
+25,11
@@
$(document).ready(function() {
url: "verify",
data: comment_data,
success: function() {
url: "verify",
data: comment_data,
success: function() {
+ var new_post = "<h3><a href='mailto:" + email
+ + "'>" + name + "</a></h3>"
+ + text + "<br><br>";
+ $('#comments').prepend(new_post);
+ $('#comment').hide();
console.log('posted new comment');
}
});
console.log('posted new comment');
}
});