Skip to content

Commit

Permalink
[JENKINS-73007] Create-item button no longer disabled when duplicate …
Browse files Browse the repository at this point in the history
…name present (#9167)
  • Loading branch information
janfaracik committed Apr 15, 2024
1 parent 32586f1 commit 77a788e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion war/src/main/js/add-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ $.when(getItems()).done(function (data) {
}
cleanValidationMessages(context);
$(messageId).removeClass("input-message-disabled");
enableSubmit(false);
}

function cleanValidationMessages(context) {
Expand All @@ -69,7 +70,7 @@ $.when(getItems()).done(function (data) {
}

function enableSubmit(status) {
var btn = $("form .footer .btn-decorator button[type=submit]");
var btn = $(".bottom-sticker-inner button[type=submit]");
if (status === true) {
if (btn.hasClass("disabled")) {
btn.removeClass("disabled");
Expand Down

0 comments on commit 77a788e

Please sign in to comment.