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,7 +53,6 @@ window.stopSpinner = -> | ||
| 53 | window.unbindEvents = -> | 53 | window.unbindEvents = -> |
| 54 | $(document).unbind('scroll') | 54 | $(document).unbind('scroll') |
| 55 | $(document).off('scroll') | 55 | $(document).off('scroll') |
| 56 | - $(document).off('click') | ||
| 57 | 56 | ||
| 58 | document.addEventListener("page:fetch", startSpinner) | 57 | document.addEventListener("page:fetch", startSpinner) |
| 59 | document.addEventListener("page:fetch", unbindEvents) | 58 | document.addEventListener("page:fetch", unbindEvents) |
app/controllers/groups_controller.rb
| 1 | class GroupsController < ApplicationController | 1 | class GroupsController < ApplicationController |
| 2 | respond_to :html | 2 | respond_to :html |
| 3 | - before_filter :group, except: [:new, :create, :people] | 3 | + before_filter :group, except: [:new, :create] |
| 4 | 4 | ||
| 5 | # Authorize | 5 | # Authorize |
| 6 | before_filter :authorize_read_group!, except: [:new, :create] | 6 | before_filter :authorize_read_group!, except: [:new, :create] |
app/controllers/users_groups_controller.rb
| @@ -21,7 +21,7 @@ class UsersGroupsController < ApplicationController | @@ -21,7 +21,7 @@ class UsersGroupsController < ApplicationController | ||
| 21 | @users_group.destroy | 21 | @users_group.destroy |
| 22 | 22 | ||
| 23 | respond_to do |format| | 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 | format.js { render nothing: true } | 25 | format.js { render nothing: true } |
| 26 | end | 26 | end |
| 27 | end | 27 | end |