aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-14 04:46:49 -0800
committerFriendika <info@friendika.com>2011-02-14 04:46:49 -0800
commitb87ddbd58aa2739521282f44a463be53c6397231 (patch)
treeea47d4ca6df492beaf1ffdc6fdfb4159513e9893 /include
parentf37caa0999b4d9a7a1ef92b7996d3bec00150b2b (diff)
parentdf209907536a3c5e093b8ae95070ca9941c6c797 (diff)
downloadvolse-hubzilla-b87ddbd58aa2739521282f44a463be53c6397231.tar.gz
volse-hubzilla-b87ddbd58aa2739521282f44a463be53c6397231.tar.bz2
volse-hubzilla-b87ddbd58aa2739521282f44a463be53c6397231.zip
Merge branch 'ajaxcomms'
Conflicts: view/comment_item.tpl
Diffstat (limited to 'include')
-rw-r--r--include/main.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/main.js b/include/main.js
index 63b34bd21..abd097e54 100644
--- a/include/main.js
+++ b/include/main.js
@@ -29,6 +29,7 @@
$(document).ready(function() {
$.ajaxSetup({cache: false});
+
msie = $.browser.msie ;
NavUpdate();
// Allow folks to stop the ajax page updates with the pause/break key
@@ -210,3 +211,23 @@
$('#panel').hide();
}
+ function post_comment(id) {
+ $.post(
+ "item",
+ $("#comment-edit-form-" + id).serialize(),
+ function(data) {
+ if(data.success) {
+ $("#comment-edit-wrapper-" + id).hide();
+ $("#comment-edit-text-" + id).val('');
+ var tarea = document.getElementById("comment-edit-text-" + id);
+ if(tarea)
+ commentClose(tarea,id);
+ if(timer) clearTimeout(timer);
+ timer = setTimeout(NavUpdate,10);
+ }
+ },
+ "json"
+ );
+ return false;
+ }
+