Commit e2d6521d authored by James Lopez's avatar James Lopez

some JS magic to fix empty URL bug

parent dd639550
......@@ -154,4 +154,12 @@
$('.import_gitlab_project').attr('disabled',true);
$('.import_gitlab_project').attr('title', 'Project path required.');
}
})
});
$('.import_git').click(function( event ) {
if($('#project_import_url').attr('disabled')) {
$('#project_import_url').attr('disabled', false);
} else {
$('#project_import_url').attr('disabled', true);
}
});
\ No newline at end of file
......@@ -2,7 +2,7 @@
= f.label :import_url, class: 'control-label' do
%span Git repository URL
.col-sm-10
= f.text_field :import_url, class: 'form-control', placeholder: 'https://username:password@gitlab.company.com/group/project.git'
= f.text_field :import_url, class: 'form-control', placeholder: 'https://username:password@gitlab.company.com/group/project.git', disabled: true
.well.prepend-top-20
%ul
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment