summaryrefslogtreecommitdiffstats
path: root/app/views/reactions/_replace_button.js.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/reactions/_replace_button.js.erb')
-rw-r--r--app/views/reactions/_replace_button.js.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/reactions/_replace_button.js.erb b/app/views/reactions/_replace_button.js.erb
new file mode 100644
index 000000000..a5c923ea4
--- /dev/null
+++ b/app/views/reactions/_replace_button.js.erb
@@ -0,0 +1,7 @@
+(() => {
+ const button = $('[data-reaction-button-id=<%= reaction_id_for @object %>]');
+
+ removeHoverTooltips(button);
+ button.html($('<%=j reaction_button @object %>').children());
+ setupHoverTooltips(button);
+})();