aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-10-25 15:01:58 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-10-25 15:01:58 +0200
commitbcb672e7ff859168b639ffffc38553bbcf7e918c (patch)
treeea969ff32e9dbf1c4cd0d898ec02b9802bec9c7f /js/main.js
parentafce790e56ba7cd4c5c049e7c3a9aac20846981e (diff)
downloadvolse-hubzilla-bcb672e7ff859168b639ffffc38553bbcf7e918c.tar.gz
volse-hubzilla-bcb672e7ff859168b639ffffc38553bbcf7e918c.tar.bz2
volse-hubzilla-bcb672e7ff859168b639ffffc38553bbcf7e918c.zip
autocomplete contacts nickname while writting in a comment box.
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/js/main.js b/js/main.js
index 03ba11ed8..15c5b5d1f 100644
--- a/js/main.js
+++ b/js/main.js
@@ -78,8 +78,6 @@
menu.toggle();
return false;
});
-
-
/* notifications template */
var notifications_tpl= unescape($("#nav-notifications-template[rel=template]").html());
@@ -163,7 +161,9 @@
}
}
- });
+ });
+
+
});
function NavUpdate() {
@@ -245,6 +245,8 @@
commentBusy = false;
$('body').css('cursor', 'auto');
}
+ /* autocomplete @nicknames */
+ $(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
});
}
@@ -445,6 +447,7 @@ function setupFieldRichtext(){
});
}
+
/**
* sprintf in javascript
* "{0} and {1}".format('zero','uno');