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
iv
gitlab-ce
Commits
88d394d3
Commit
88d394d3
authored
Sep 06, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup projects.coffee
parent
e7c2ee57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
app/assets/javascripts/projects.js.coffee
app/assets/javascripts/projects.js.coffee
+12
-13
No files found.
app/assets/javascripts/projects.js.coffee
View file @
88d394d3
window
.
Projects
=
->
window
.
Projects
=
->
$
(
"#project_name"
).
live
"change"
,
->
$
(
'#project_name'
).
on
'change'
,
->
slug
=
slugify
(
$
(
this
).
val
())
slug
=
slugify
$
(
@
).
val
()
$
(
"#project_code"
).
val
(
slug
)
$
(
'#project_code'
).
val
slug
$
(
"#project_path"
).
val
(
slug
)
$
(
".new_project, .edit_project"
).
live
"ajax:before"
,
->
$
(
'.new_project, .edit_project'
).
on
'ajax:before'
,
->
$
(
".project_new_holder, .project_edit_holder"
).
hide
()
$
(
'.project_new_holder, .project_edit_holder'
).
hide
()
$
(
".save-project-loader"
).
show
()
$
(
'.save-project-loader'
).
show
()
$
(
"form #project_default_branch"
).
chosen
()
$
(
'form #project_default_branch'
).
chosen
()
disableButtonIfEmtpyField
"#project_name"
,
".project-submit"
disableButtonIfEmtpyField
'#project_name'
,
'.project-submit'
# Git clone panel switcher
# Git clone panel switcher
$
->
$
->
scope
=
$
(
'.project_clone_holder'
)
scope
=
$
'.project_clone_holder'
if
scope
.
length
>
0
if
scope
.
length
>
0
$
(
'a, button'
,
scope
).
click
->
$
(
'a, button'
,
scope
).
click
->
$
(
'a, button'
,
scope
).
removeClass
(
'active'
)
$
(
'a, button'
,
scope
).
removeClass
'active'
$
(
this
).
addClass
(
'active'
)
$
(
@
).
addClass
'active'
$
(
'#project_clone'
,
scope
).
val
(
$
(
this
).
data
(
'clone'
))
$
(
'#project_clone'
,
scope
).
val
$
(
@
).
data
'clone'
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