提交 d0623921 编写于 作者: G gusreiber

[FIX JENKINS-33418] exit if elem not defined

上级 ede925ca
......@@ -43,6 +43,9 @@ function updateListBox(listBox,url,config) {
Behaviour.specify("SELECT.select", 'select', 1000, function(e) {
function hasChanged(selectEl, originalValue) {
// seems like a race condition allows this to fire before the 'selectEl' is defined. If that happens, exit..
if(!selectEl || !selectEl.options || !selectEl[0])
return false;
var firstValue = selectEl.options[0].value;
var selectedValue = selectEl.value;
if (originalValue == "" && selectedValue == firstValue) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册