Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
ede746bf
Commit
ede746bf
authored
Jun 21, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent document unbind since it breaks rails ujs
parent
4c9e47f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
app/assets/javascripts/main.js.coffee
app/assets/javascripts/main.js.coffee
+0
-1
app/controllers/groups_controller.rb
app/controllers/groups_controller.rb
+1
-1
No files found.
app/assets/javascripts/main.js.coffee
View file @
ede746bf
...
@@ -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
)
...
...
app/controllers/groups_controller.rb
View file @
ede746bf
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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment