Revert disabling of the name input [SCI-8460] (#5602)

Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
Soufiane 2023-06-15 14:26:25 +02:00 committed by GitHub
parent 20a411c777
commit 34b7999e43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,11 +77,9 @@ var ProjectsIndex = (function() {
// Modal's submit handler function
$(projectsWrapper)
.on('submit', '#new_project', function() {
$('#project_name').prop('disabled', true);
$('#new-project-modal button[type="submit"]').prop('disabled', true);
})
.on('ajax:complete', '#new_project', function() {
$('#project_name').prop('disabled', false);
$('#new-project-modal button[type="submit"]').prop('disabled', false);
})
.on('ajax:success', newProjectModal, function(_ev, data) {