mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +08:00
Merge pull request #3092 from urbanrotnik/ur-sci-5406-error-at-saving-project
Fix error message for name in EditProject modal [SCI-5406]
This commit is contained in:
commit
dbdfe4177d
1 changed files with 5 additions and 2 deletions
|
@ -353,8 +353,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