mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Fix error message for name in EditProject modal
[SCI-5406]
This commit is contained in:
parent
496c106497
commit
02592178f3
|
@ -344,8 +344,11 @@
|
|||
refreshCurrentView();
|
||||
}).on('ajax:error', function(ev, data) {
|
||||
HelperModule.flashAlertMsg(data.responseJSON.message, 'danger');
|
||||
$(this).renderFormErrors('project', data.responseJSON.errors);
|
||||
$(this).renderFormErrors('project_folder', data.responseJSON.errors);
|
||||
if ($(this).hasClass('edit_project')) {
|
||||
$(this).renderFormErrors('project', data.responseJSON.errors);
|
||||
} else {
|
||||
$(this).renderFormErrors('project_folder', data.responseJSON.errors);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue