MDL-26925 User selector: Set label when no results

Thanks to Jonathon Fowler for the fix!
This commit is contained in:
Dan Poltawski 2013-06-06 14:07:27 +08:00
parent b6f8a93642
commit 12313d6125

View File

@ -263,6 +263,7 @@ M.core_user.init_user_selector = function (Y, name, hash, extrafields, lastsearc
option.set('selected', true);
}
} else {
optgroup.set('label', groupname);
optgroup.append(Y.Node.create('<option disabled="disabled">\u00A0</option>'));
}
this.listbox.append(optgroup);