aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
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')
-rw-r--r--include/acl_selectors.php2
-rw-r--r--include/main.js21
2 files changed, 23 insertions, 0 deletions
diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index 953243a43..94f51a9ff 100644
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
@@ -44,6 +44,8 @@ function group_select($selname,$selclass,$preselected = false,$size = 4) {
function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false, $privatenet = false) {
+ $a = get_app();
+
$o = '';
// When used for private messages, we limit correspondence to mutual friends and the selector
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;
+ }
+