diff options
author | Patricio Cano <suprnova32@gmail.com> | 2015-09-15 04:50:13 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2015-09-15 04:50:13 +0300 |
commit | fa6df2228e7d8957db4b37a44b687c71aac52449 (patch) | |
tree | 42bb81455286e3df442158cf5cb1da3ed28a09f1 /app/assets | |
parent | 01cc20378be1b77bd2a40a6af257e2cf116ce26a (diff) |
Replaced `this` with `@` in the coffee file and added an arrow that clearly marks the Notifications button as a drop down
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/project.js.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee index f524627e0be..e187ec6ab77 100644 --- a/app/assets/javascripts/project.js.coffee +++ b/app/assets/javascripts/project.js.coffee @@ -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 |