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
93e8a056
Commit
93e8a056
authored
Oct 21, 2014
by
Ciro Santilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only run profile js on pages that need it
parent
72abe9f6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+4
-0
profile.js.coffee
app/assets/javascripts/profile.js.coffee
+2
-3
user.js.coffee
app/assets/javascripts/user.js.coffee
+3
-0
No files found.
app/assets/javascripts/dispatcher.js.coffee
View file @
93e8a056
...
...
@@ -79,11 +79,15 @@ class Dispatcher
# Ensure we don't create a particular shortcut handler here. This is
# already created, where the network graph is created.
shortcut_handler
=
true
when
'users:show'
new
User
()
switch
path
.
first
()
when
'admin'
then
new
Admin
()
when
'dashboard'
shortcut_handler
=
new
ShortcutsDashboardNavigation
()
when
'profiles'
new
Profile
()
when
'projects'
switch
path
[
1
]
when
'wikis'
...
...
app/assets/javascripts/profile.js.coffee
View file @
93e8a056
$
->
class
@
Profile
constructor
:
->
$
(
'.edit_user .application-theme input, .edit_user .code-preview-theme input'
).
click
->
# Submit the form
$
(
'.edit_user'
).
submit
()
...
...
@@ -26,5 +27,3 @@ $ ->
form
=
$
(
this
).
closest
(
"form"
)
filename
=
$
(
this
).
val
().
replace
(
/^.*[\\\/]/
,
''
)
form
.
find
(
".js-avatar-filename"
).
text
(
filename
)
$
(
'.profile-groups-avatars'
).
tooltip
(
"placement"
:
"top"
)
app/assets/javascripts/user.js.coffee
0 → 100644
View file @
93e8a056
class
@
User
constructor
:
->
$
(
'.profile-groups-avatars'
).
tooltip
(
"placement"
:
"top"
)
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