mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-21 06:18:45 +02:00
Work in progress. I've moved permissions management to the new dedicated page. Adding permissions is working but deleting ones. I must also filter the list of users available when creating a super admin because the default admin appears inside :p
28 lines
664 B
JavaScript
28 lines
664 B
JavaScript
window.addEvent('domready', function() {
|
|
var tip = new Tips($$(".Tips"));
|
|
|
|
var addperm_url = "";
|
|
var accordion = new Accordion('h3.atStart', 'div.atStart', {
|
|
opacity: true,
|
|
onActive: function(toggler, element){
|
|
toggler.setStyle('color', '#ff3300');
|
|
addperm_url = element.get("name");
|
|
},
|
|
|
|
onBackground: function(toggler, element) {
|
|
toggler.setStyle('color', '#222');
|
|
}
|
|
}, $('accordion'));
|
|
|
|
$$("a[name=addperm]").addEvent("click", function(evt) {
|
|
evt.stop();
|
|
if (addperm_url == "") {
|
|
return;
|
|
}
|
|
SqueezeBox.initialize({
|
|
size: {x: 300, y: 280},
|
|
handler: 'iframe'
|
|
});
|
|
SqueezeBox.open(addperm_url);
|
|
});
|
|
}); |