Merge pull request #7014 from G-Chubinidze/gc_SCI_10059

New Module Modal: Error messages are stacked [SCI-10059]
This commit is contained in:
Martin Artnik 2024-02-01 10:17:34 +01:00 committed by GitHub
commit d24d9a0863
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 %>,