Skip to content
Snippets Groups Projects
Commit e2d6521d authored by James Lopez's avatar James Lopez
Browse files

some JS magic to fix empty URL bug

parent dd639550
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment