From 7ae376b6cdd1c5b2b4662838c81899cff7c82780 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 2 Jun 2016 22:06:19 -0700 Subject: 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. --- view/tpl/conv_item.tpl | 25 +++++++++++++++++++++++++ view/tpl/jot-header.tpl | 8 ++++++++ 2 files changed, 33 insertions(+) (limited to 'view/tpl') diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index d9c60fc3b..06cf16b34 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -113,6 +113,31 @@ {{/if}} + {{if $item.like}} + + + + + {{/if}} + + + 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); -- cgit v1.2.3 From f8949ed5d1f277a3246fecf04d3ee4619ba10b51 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 2 Jun 2016 22:12:56 -0700 Subject: restrict emoji reactions to the top level for now. --- view/tpl/conv_item.tpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view/tpl') diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 06cf16b34..b498420e3 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -113,6 +113,7 @@ {{/if}} + {{if $item.toplevel}} {{if $item.like}} - {{/if}} - {{if $item.dislike}} - - {{/if}} - {{if $item.isevent}} - - - - {{/if}} - - {{if $item.canvote}} - - - - {{/if}} +
+ {{if $item.toplevel && $item.like}} + {{/if}} - - - - - +
-- cgit v1.2.3 From e81ac9e0637c4533aeb144511b8f68ec8a99e257 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Fri, 3 Jun 2016 16:04:54 -0700 Subject: turn emoji ability into a feature so that either a member or the site admin can disable it. Default is enabled. --- view/tpl/conv_item.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 997c27259..662eeaf97 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -79,7 +79,7 @@ {{/if}}
- {{if $item.toplevel && $item.like}} + {{if $item.toplevel && $item.emojis}} {{/if}} -- cgit v1.2.3