aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-02 22:06:19 -0700
committerredmatrix <git@macgirvin.com>2016-06-02 22:06:19 -0700
commit7ae376b6cdd1c5b2b4662838c81899cff7c82780 (patch)
treeae7fdf746a2b485ecb8b13b6b1cdf89ac4db9fe4 /view/tpl/jot-header.tpl
parent390ce207db5b2e0a68e82cb80b6667431e07d31c (diff)
downloadvolse-hubzilla-7ae376b6cdd1c5b2b4662838c81899cff7c82780.tar.gz
volse-hubzilla-7ae376b6cdd1c5b2b4662838c81899cff7c82780.tar.bz2
volse-hubzilla-7ae376b6cdd1c5b2b4662838c81899cff7c82780.zip
menu entries for basic emoji support. I could use a bit of help theming this. It may also be better rendered as a panel of buttons than a dropdown menu. Eventually we should probably allow the system admin to configure the emojis they want; as there are a large number. I only brought in a small collection that I thought would be most useful as post reactions.
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index aeb661008..43df2e175 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -349,6 +349,14 @@ function enableOnUser(){
}
}
+ function jotReact(id,icon) {
+ if(id && icon) {
+ $.get('{{$baseurl}}/react?f=&postid=' + id + '&emoji=' + icon);
+ if(timer) clearTimeout(timer);
+ timer = setTimeout(NavUpdate,1000);
+ }
+ }
+
function jotClearLocation() {
$('#jot-coord').val('');
$('#profile-nolocation-wrapper').attr('disabled', true);