mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Fix new project modal initialization [SCI-5381] (#3068)
This commit is contained in:
parent
dca0e5f188
commit
d355b4806b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue