@nodebb/nodebb-plugin-reactions 2.2.4 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/client.js +1 -1
- package/scss/reactions.scss +0 -2
- package/templates/partials/topic/reactions.tpl +3 -3
- package/package-lock.json +0 -4404
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -166,7 +166,7 @@ $(document).ready(function () {
|
|
|
166
166
|
reacted: isSelf && type === 'add',
|
|
167
167
|
reactionImage: data.reactionImage,
|
|
168
168
|
}, function (html) {
|
|
169
|
-
$('[component="post/reactions"][data-pid="' + data.pid + '"]').
|
|
169
|
+
$('[component="post/reactions"][data-pid="' + data.pid + '"]').prepend(html);
|
|
170
170
|
});
|
|
171
171
|
} else {
|
|
172
172
|
reactionEl.find('.reaction-emoji-count').attr('data-count', data.reactionCount);
|
package/scss/reactions.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{{{ if config.enablePostReactions }}}
|
|
2
2
|
<span class="reactions" component="post/reactions" data-pid="{./pid}">
|
|
3
|
-
<span class="reaction-add d-inline-block px-2 mx-1 btn-ghost-sm {{{ if ./maxReactionsReached }}}max-reactions{{{ end }}}" component="post/reaction/add" data-pid="{./pid}" title="[[reactions:add-reaction]]">
|
|
4
|
-
<i class="fa fa-face-smile text-primary"></i>
|
|
5
|
-
</span>
|
|
6
3
|
{{{ each ./reactions }}}
|
|
7
4
|
<!-- IMPORT partials/topic/reaction.tpl -->
|
|
8
5
|
{{{ end }}}
|
|
6
|
+
<a href="#" class="reaction-add btn btn-ghost btn-sm {{{ if ./maxReactionsReached }}}max-reactions{{{ end }}}" component="post/reaction/add" data-pid="{./pid}" title="[[reactions:add-reaction]]">
|
|
7
|
+
<i class="fa fa-face-smile text-primary"></i>
|
|
8
|
+
</a>
|
|
9
9
|
</span>
|
|
10
10
|
{{{ end }}}
|