Commit fa6df222 authored by Patricio Cano's avatar Patricio Cano

Replaced `this` with `@` in the coffee file and added an arrow that clearly...

Replaced `this` with `@` in the coffee file and added an arrow that clearly marks the Notifications button as a drop down
parent 01cc2037
......@@ -27,8 +27,8 @@ class @Project
$('.update-notification').on 'click', (e) ->
e.preventDefault()
level = $(this).data('notification-level')
level = $(@).data 'notification-level'
$('#notification_level').val(level)
$('#notification-form').submit()
$(this).parents('ul').find('li.active').removeClass('active')
$(this).parent().addClass('active')
\ No newline at end of file
$(@).parents('ul').find('li.active').removeClass 'active'
$(@).parent().addClass 'active'
\ No newline at end of file
......@@ -7,6 +7,7 @@
%a.dropdown-toggle.btn.btn-new{href: '#', "data-toggle" => "dropdown"}
= icon('bell')
Notifications
= icon('angle-down')
%ul.dropdown-menu.dropdown-menu-right.project-home-dropdown
- Notification.notification_levels.each do |level|
= notification_list_item(level, @membership)
\ No newline at end of file
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