Fix new project modal initialization [SCI-5381] (#3068)

This commit is contained in:
aignatov-bio 2021-01-15 15:29:12 +01:00 committed by GitHub
parent dca0e5f188
commit d355b4806b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@
$(projectsWrapper)
.on('ajax:success', '.new-project-folder-btn', function(e, data) {
// Add and show modal
$(toolbarWrapper).append($.parseHTML(data.html));
$(projectsWrapper).append($.parseHTML(data.html));
$(newProjectFolderModal).modal('show');
$(newProjectFolderModal).find("input[type='text']").focus();
// Remove modal when it gets closed
@ -87,7 +87,7 @@
$(projectsWrapper)
.on('ajax:success', '.new-project-btn', function(ev, data) {
// Add and show modal
$(toolbarWrapper).append($.parseHTML(data.html));
$(projectsWrapper).append($.parseHTML(data.html));
$(newProjectModal).modal('show');
$(newProjectModal).find("input[type='text']").focus();
// Remove modal when it gets closed