Commit ede746bf079dd45ac1e2f701e8a9019dba8e0417
1 parent
4c9e47f6
Exists in
master
and in
4 other branches
prevent document unbind since it breaks rails ujs
Showing
3 changed files
with
2 additions
and
3 deletions
Show diff stats
app/assets/javascripts/main.js.coffee
| ... | ... | @@ -53,7 +53,6 @@ window.stopSpinner = -> |
| 53 | 53 | window.unbindEvents = -> |
| 54 | 54 | $(document).unbind('scroll') |
| 55 | 55 | $(document).off('scroll') |
| 56 | - $(document).off('click') | |
| 57 | 56 | |
| 58 | 57 | document.addEventListener("page:fetch", startSpinner) |
| 59 | 58 | document.addEventListener("page:fetch", unbindEvents) | ... | ... |
app/controllers/groups_controller.rb
app/controllers/users_groups_controller.rb
| ... | ... | @@ -21,7 +21,7 @@ class UsersGroupsController < ApplicationController |
| 21 | 21 | @users_group.destroy |
| 22 | 22 | |
| 23 | 23 | respond_to do |format| |
| 24 | - format.html { redirect_to people_group_path(@group), notice: 'User was successfully removed from group.' } | |
| 24 | + format.html { redirect_to people_group_path(@group), notice: 'User was successfully removed from group.' } | |
| 25 | 25 | format.js { render nothing: true } |
| 26 | 26 | end |
| 27 | 27 | end | ... | ... |