diff options
author | Friendika <info@friendika.com> | 2011-02-14 04:46:49 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-14 04:46:49 -0800 |
commit | b87ddbd58aa2739521282f44a463be53c6397231 (patch) | |
tree | ea47d4ca6df492beaf1ffdc6fdfb4159513e9893 /include | |
parent | f37caa0999b4d9a7a1ef92b7996d3bec00150b2b (diff) | |
parent | df209907536a3c5e093b8ae95070ca9941c6c797 (diff) | |
download | volse-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.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; + } + |