提交 9f2f8270 编写于 作者: R recena

[JENKINS-33755] Better usage of focus behavior

上级 ef08dc1d
......@@ -121,7 +121,6 @@ $.when(getItems()).done(function(data){
cleanValidationMessages('.add-item-copy');
if (isItemNameEmpty()) {
activateValidationMessage('#itemname-required', '.add-item-name');
$('input[name="name"][type="text"]', '#createItem').focus();
}
}
$item.click(setSelectState);
......@@ -170,7 +169,6 @@ $.when(getItems()).done(function(data){
var message = parseResponseFromCheckJobName(data);
if (message !== '') {
activateValidationMessage('#itemname-invalid', '.add-item-name', message);
$('input[name="name"][type="text"]', '#createItem').focus();
} else {
cleanValidationMessages('.add-item-name');
showInputHelp('.add-item-name');
......@@ -178,7 +176,6 @@ $.when(getItems()).done(function(data){
});
} else {
activateValidationMessage('#itemname-required', '.add-item-name');
$('input[name="name"][type="text"]', '#createItem').focus();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册