BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
main.js.coffee
app/assets/javascripts/main.js.coffee
+0
-1
groups_controller.rb
app/controllers/groups_controller.rb
+1
-1
users_groups_controller.rb
app/controllers/users_groups_controller.rb
+1
-1
No files found.
app/assets/javascripts/main.js.coffee
View file @
ede746bf
...
...
@@ -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
)
...
...
app/controllers/groups_controller.rb
View file @
ede746bf
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
]
...
...
app/controllers/users_groups_controller.rb
View file @
ede746bf
...
...
@@ -21,7 +21,7 @@ class UsersGroupsController < ApplicationController
@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
...
...
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