mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-04 19:05:37 +08:00
Revert disabling of the name input [SCI-8460] (#5602)
Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
parent
20a411c777
commit
34b7999e43
1 changed files with 0 additions and 2 deletions
|
@ -77,11 +77,9 @@ var ProjectsIndex = (function() {
|
||||||
// Modal's submit handler function
|
// Modal's submit handler function
|
||||||
$(projectsWrapper)
|
$(projectsWrapper)
|
||||||
.on('submit', '#new_project', function() {
|
.on('submit', '#new_project', function() {
|
||||||
$('#project_name').prop('disabled', true);
|
|
||||||
$('#new-project-modal button[type="submit"]').prop('disabled', true);
|
$('#new-project-modal button[type="submit"]').prop('disabled', true);
|
||||||
})
|
})
|
||||||
.on('ajax:complete', '#new_project', function() {
|
.on('ajax:complete', '#new_project', function() {
|
||||||
$('#project_name').prop('disabled', false);
|
|
||||||
$('#new-project-modal button[type="submit"]').prop('disabled', false);
|
$('#new-project-modal button[type="submit"]').prop('disabled', false);
|
||||||
})
|
})
|
||||||
.on('ajax:success', newProjectModal, function(_ev, data) {
|
.on('ajax:success', newProjectModal, function(_ev, data) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue