Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-36539] (#2495)
(cherry picked from commit fbb4dc0)
  • Loading branch information
fuentesj authored and olivergondza committed Nov 8, 2016
1 parent e85e3e2 commit 7e8ea4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions war/src/main/js/add-item.js
Expand Up @@ -107,7 +107,6 @@ $.when(getItems()).done(function(data) {
btn.removeClass('disabled');
btn.prop('disabled', false);
}
btn.focus();
} else {
if (!btn.hasClass('disabled')) {
btn.addClass('disabled');
Expand Down Expand Up @@ -233,7 +232,7 @@ $.when(getItems()).done(function(data) {
$("#add-item-panel").find("#name").focus();

// Init NameField
$('input[name="name"]', '#createItem').blur(function() {
$('input[name="name"]', '#createItem').on("blur input", function() {
if (!isItemNameEmpty()) {
var itemName = $('input[name="name"]', '#createItem').val();
$.get("checkJobName", { value: itemName }).done(function(data) {
Expand Down

0 comments on commit 7e8ea4a

Please sign in to comment.