BigW Consortium Gitlab

Commit b0082bec by Fatih Acet

Get award menu url from gl object.

parent c697c960
......@@ -232,7 +232,7 @@ class @AwardsHandler
return @createEmoji_ emoji if $('.emoji-menu').length
awardMenuUrl = $('[data-award-menu-url]').data 'award-menu-url'
awardMenuUrl = gl.awardMenuUrl or '/emojis'
@createEmojiMenu awardMenuUrl, => @createEmoji emoji
......
......@@ -7,6 +7,9 @@
= awards.count
- if current_user
:javascript
gl.awardMenuUrl = "#{emojis_path}"
.award-menu-holder.js-award-holder
%button.btn.award-control.js-add-award{ type: "button", data: { award_menu_url: emojis_path } }
= icon('smile-o', {class: "award-control-icon award-control-icon-normal"})
......
......@@ -7,6 +7,9 @@
= awards.count
- if current_user
:javascript
gl.awardMenuUrl = emojis_path
.award-menu-holder.js-award-holder
%button.btn.award-control.js-add-award{ type: "button", data: { award_menu_url: emojis_path } }
= icon('smile-o', {class: "award-control-icon award-control-icon-normal"})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment