aboutsummaryrefslogtreecommitdiffstats
path: root/include/main.js
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-02-15 14:19:54 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-02-15 14:19:54 +0100
commit70cf5ae3c79ad1b94e9d5fab82325d55a12761c0 (patch)
tree5aeffd36453e9b890442a682623c84aee276836e /include/main.js
parentdd8bbe820294ce6e0ca2e17f8783cb125b9871db (diff)
parent473786d3a09a2210b2fe55a00d2bac5d8d207d52 (diff)
downloadvolse-hubzilla-70cf5ae3c79ad1b94e9d5fab82325d55a12761c0.tar.gz
volse-hubzilla-70cf5ae3c79ad1b94e9d5fab82325d55a12761c0.tar.bz2
volse-hubzilla-70cf5ae3c79ad1b94e9d5fab82325d55a12761c0.zip
Merge remote-tracking branch 'friendika-master/master'
Diffstat (limited to 'include/main.js')
-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;
+ }
+