for those of us with a lot of hosts to deal with :)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Ben Shum <bshum@biblio.org>
['render'],
function(e) {
return function() {
+ var list = [];
for (var s in obj.data.ws_info) {
+ list.push(s);
+ }
+ list.sort();
+ for (var i = 0; i < list.length; i++) {
var mi = document.createElement('menuitem');
- mi.setAttribute('label',s);
- mi.setAttribute('value',s);
+ mi.setAttribute('label',list[i]);
+ mi.setAttribute('value',list[i]);
e.appendChild(mi);
}
};