Read about our upcoming Code of Conduct on this issue

Commit ede746bf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

prevent document unbind since it breaks rails ujs

parent 318c6ede08c4
......@@ -53,7 +53,6 @@ window.stopSpinner = ->
window.unbindEvents = ->
$(document).unbind('scroll')
$(document).off('scroll')
$(document).off('click')
document.addEventListener("page:fetch", startSpinner)
document.addEventListener("page:fetch", unbindEvents)
......
class GroupsController < ApplicationController
respond_to :html
before_filter :group, except: [:new, :create, :people]
before_filter :group, except: [:new, :create]
# Authorize
before_filter :authorize_read_group!, except: [:new, :create]
......
......@@ -21,7 +21,7 @@ def destroy
@users_group.destroy
respond_to do |format|
format.html { redirect_to people_group_path(@group), notice: 'User was successfully removed from group.' }
format.html { redirect_to people_group_path(@group), notice: 'User was successfully removed from group.' }
format.js { render nothing: true }
end
end
......
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