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
5e510ada
Commit
5e510ada
authored
Aug 30, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Js validation for title presence in issue, mr, milestone
parent
b9ff0c79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
issues.js
app/assets/javascripts/issues.js
+2
-0
_form.html.haml
app/views/merge_requests/_form.html.haml
+1
-0
_form.html.haml
app/views/milestones/_form.html.haml
+1
-0
No files found.
app/assets/javascripts/issues.js
View file @
5e510ada
...
...
@@ -5,6 +5,7 @@ function switchToNewIssue(form){
$
(
'select#issue_milestone_id'
).
chosen
();
$
(
"#new_issue_dialog"
).
show
(
"fade"
,
{
direction
:
"right"
},
150
);
$
(
'.top-tabs .add_new'
).
hide
();
disableButtonIfEmtpyField
(
"#issue_title"
,
".save-btn"
);
});
}
...
...
@@ -15,6 +16,7 @@ function switchToEditIssue(form){
$
(
'select#issue_milestone_id'
).
chosen
();
$
(
"#edit_issue_dialog"
).
show
(
"fade"
,
{
direction
:
"right"
},
150
);
$
(
'.add_new'
).
hide
();
disableButtonIfEmtpyField
(
"#issue_title"
,
".save-btn"
);
});
}
...
...
app/views/merge_requests/_form.html.haml
View file @
5e510ada
...
...
@@ -60,6 +60,7 @@
:javascript
$
(
function
(){
disableButtonIfEmtpyField
(
"#merge_request_title"
,
".save-btn"
);
$
(
'select#merge_request_assignee_id'
).
chosen
();
$
(
'select#merge_request_source_branch'
).
chosen
();
$
(
'select#merge_request_target_branch'
).
chosen
();
...
...
app/views/milestones/_form.html.haml
View file @
5e510ada
...
...
@@ -41,6 +41,7 @@
:javascript
$
(
function
()
{
disableButtonIfEmtpyField
(
"#milestone_title"
,
".save-btn"
);
$
(
".datepicker"
).
datepicker
({
dateFormat
:
"yy-mm-dd"
,
onSelect
:
function
(
dateText
,
inst
)
{
$
(
"#milestone_due_date"
).
val
(
dateText
)
}
...
...
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