prevent document unbind since it breaks rails ujs
This commit is contained in:
parent
4c9e47f6e0
commit
ede746bf07
3 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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]
|
||||
|
|
Loading…
Reference in a new issue