X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fmain.js;h=abd097e54a07bcfd7442377823039f264b52e8b4;hb=9f1f9da89bb98d768b7a41b388e9c5c0d28ec946;hp=63b34bd21aa0bd9acc889541ad974595708d51bf;hpb=c26463b65b4b98f9aca77781fd74a7fe99f73814;p=friendica.git diff --git a/include/main.js b/include/main.js index 63b34bd21a..abd097e54a 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; + } +