mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 14:44:26 +08:00
Merge pull request #7014 from G-Chubinidze/gc_SCI_10059
New Module Modal: Error messages are stacked [SCI-10059]
This commit is contained in:
commit
d24d9a0863
1 changed files with 3 additions and 0 deletions
|
@ -1372,6 +1372,9 @@ function bindNewModuleAction(gridDistX, gridDistY) {
|
|||
|
||||
function handleNewNameConfirm(ev) {
|
||||
var input = $("#new-module-name-input");
|
||||
|
||||
input.parent().removeClass("has-error");
|
||||
input.next("span.help-block").remove();
|
||||
// Validate module name
|
||||
var moduleNameValid = textValidator(ev, input,
|
||||
<%= Constants::NAME_MIN_LENGTH %>, <%= Constants::NAME_MAX_LENGTH %>,
|
||||
|
|
Loading…
Reference in a new issue