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
fb3815b2
Commit
fb3815b2
authored
Jan 07, 2012
by
Valery Sizov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature_311'
parents
9d0794df
97e74c5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
app/views/projects/_form.html.haml
app/views/projects/_form.html.haml
+6
-6
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+13
-0
No files found.
app/views/projects/_form.html.haml
View file @
fb3815b2
...
...
@@ -58,14 +58,14 @@
=
link_to
'Remove'
,
@project
,
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"red-button"
:javascript
$
(
'
.new_project, .edit_project
'
).
bind
(
'
ajax:before
'
,
function
()
{
$
(
this
).
find
(
"
.form_content
"
).
hide
();
$
(
'
.ajax_loader
'
).
show
();
});
:javascript
$
(
function
(){
$
(
'
.new_project, .edit_project
'
).
bind
(
'
ajax:before
'
,
function
()
{
$
(
this
).
find
(
"
.form_content
"
).
hide
();
$
(
'
.ajax_loader
'
).
show
();
});
taggifyForm
();
$
(
'
form #project_default_branch
'
).
chosen
();
})
app/views/projects/new.html.haml
View file @
fb3815b2
...
...
@@ -8,3 +8,16 @@
%div
.clear
=
render
'form'
:javascript
$
(
function
(){
$
(
"
#project_name
"
).
change
(
function
(){
var
slug
=
slugify
(
$
(
this
).
val
());
$
(
"
#project_code
"
).
val
(
slug
);
$
(
"
#project_path
"
).
val
(
slug
);
});
});
function
slugify
(
text
)
{
return
text
.
replace
(
/
[^
-a-zA-Z0-9
]
+/g
,
'
_
'
).
toLowerCase
();
}
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