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:09:59 +08:00
parent ae61eea349
commit 031e2352da
+2 -1
View File
@@ -275,6 +275,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);
@@ -379,4 +380,4 @@ M.core_user.init_user_selector_options_tracker = function(Y) {
user_selector_options_tracker.init();
// Return it just incase it is ever wanted
return user_selector_options_tracker;
};
};