Permalink
Browse files

MDL-26925 User selector: Set label when no results

Thanks to Jonathon Fowler for the fix!
  • Loading branch information...
danpoltawski committed Jun 6, 2013
1 parent f36066f commit 6cf84992539698f7e0dd89b2a0c4c48cfb5562d3
Showing with 1 addition and 0 deletions.
  1. +1 −0 user/selector/module.js
View
@@ -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);

0 comments on commit 6cf8499

Please sign in to comment.