Cleanup provider lists
This commit is contained in:
@@ -120,7 +120,13 @@ Page.Settings = new Class({
|
||||
var self = this;
|
||||
|
||||
self.tabs_container = new Element('ul.tabs');
|
||||
self.containers = new Element('form.uniForm.containers').adopt(
|
||||
self.containers = new Element('form.uniForm.containers', {
|
||||
'events': {
|
||||
'click:relay(.enabler.disabled h2)': function(e, el){
|
||||
el.getPrevious().getElements('.check').fireEvent('click');
|
||||
}
|
||||
}
|
||||
}).adopt(
|
||||
new Element('label.advanced_toggle').adopt(
|
||||
new Element('span', {
|
||||
'text': 'Show advanced settings'
|
||||
@@ -285,14 +291,23 @@ Page.Settings = new Class({
|
||||
})
|
||||
}
|
||||
|
||||
var icon;
|
||||
if(group.icon){
|
||||
icon = new Element('span.icon').grab(new Element('img', {
|
||||
'src': 'data:image/png;base64,' + group.icon
|
||||
}));
|
||||
}
|
||||
|
||||
var label = new Element('span.group_label', {
|
||||
'text': group.label || (group.name).capitalize()
|
||||
})
|
||||
|
||||
return new Element('fieldset', {
|
||||
'class': (group.advanced ? 'inlineLabels advanced' : 'inlineLabels') + ' group_' + (group.name || '') + ' subtab_' + (group.subtab || '')
|
||||
}).grab(
|
||||
new Element('h2', {
|
||||
'text': group.label || (group.name).capitalize()
|
||||
}).grab(hint)
|
||||
);
|
||||
new Element('h2').adopt(icon, label, hint)
|
||||
);
|
||||
|
||||
},
|
||||
|
||||
createList: function(content_container){
|
||||
|
||||
Reference in New Issue
Block a user