diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2011-02-16 08:06:04 +0100 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2011-02-16 08:06:04 +0100 |
commit | 9e746b504fd0f1367cce6353ac51f71327d8fb75 (patch) | |
tree | a86bf9534cbb2ac6c497cf1874697350a387fd9e /include/main.js | |
parent | 53dff2204bf2cbe46b6cbdb7174fa0cf1a7162b1 (diff) | |
parent | 97723ad69f71c716bd0e68eec95944b5469008ec (diff) | |
download | volse-hubzilla-9e746b504fd0f1367cce6353ac51f71327d8fb75.tar.gz volse-hubzilla-9e746b504fd0f1367cce6353ac51f71327d8fb75.tar.bz2 volse-hubzilla-9e746b504fd0f1367cce6353ac51f71327d8fb75.zip |
Merge branch 'master' of github.com:fabrixxm/friendika
Diffstat (limited to 'include/main.js')
-rw-r--r-- | include/main.js | 21 |
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; + } + |