forked from extern/egroupware
Sort browser's widget list, so you can find widget you're looking for
This commit is contained in:
parent
7806f183a9
commit
08ac429774
@ -56,10 +56,17 @@ widget_browser.prototype._init_list = function()
|
||||
.attr('id', 'widgets')
|
||||
.click(function(e) {self.select_widget(e);})
|
||||
.appendTo(this.list_div);
|
||||
|
||||
// Sort the registry
|
||||
var types = [];
|
||||
for(var type in et2_registry)
|
||||
{
|
||||
var class_name = et2_registry[type];
|
||||
list.append('<li>'+type+'</li>');
|
||||
types.push(type);
|
||||
}
|
||||
types.sort();
|
||||
for(var i = 0; i < types.length; i++)
|
||||
{
|
||||
list.append('<li>'+types[i]+'</li>');
|
||||
}
|
||||
|
||||
// Build attribute table
|
||||
|
Loading…
Reference in New Issue
Block a user