Commit ede746bf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

prevent document unbind since it breaks rails ujs

parent 4c9e47f6
...@@ -53,7 +53,6 @@ window.stopSpinner = -> ...@@ -53,7 +53,6 @@ window.stopSpinner = ->
window.unbindEvents = -> window.unbindEvents = ->
$(document).unbind('scroll') $(document).unbind('scroll')
$(document).off('scroll') $(document).off('scroll')
$(document).off('click')
document.addEventListener("page:fetch", startSpinner) document.addEventListener("page:fetch", startSpinner)
document.addEventListener("page:fetch", unbindEvents) document.addEventListener("page:fetch", unbindEvents)
......
class GroupsController < ApplicationController class GroupsController < ApplicationController
respond_to :html respond_to :html
before_filter :group, except: [:new, :create, :people] before_filter :group, except: [:new, :create]
# Authorize # Authorize
before_filter :authorize_read_group!, except: [:new, :create] before_filter :authorize_read_group!, except: [:new, :create]
......
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