Js validation for title presence in issue, mr, milestone
This commit is contained in:
parent
b9ff0c79b4
commit
5e510ada7a
3 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue