mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
21 lines
615 B
JavaScript
21 lines
615 B
JavaScript
window.addEvent('domready', function() {
|
|
if ($$("a[name=deletePerm]"))
|
|
$$("a[name=deletePerm]").addEvent('click', function(event) {
|
|
if (!confirm(gettext("Remove this permission?")))
|
|
event.stop();
|
|
});
|
|
|
|
var tip = new Tips($$(".Tips"));
|
|
|
|
var accordion = new Accordion('h3.atStart', 'div.atStart', {
|
|
opacity: true,
|
|
onActive: function(toggler, element){
|
|
toggler.setStyle('color', '#ff3300');
|
|
},
|
|
|
|
onBackground: function(toggler, element){
|
|
toggler.setStyle('color', '#222');
|
|
}
|
|
}, $('accordion'));
|
|
saveparams("params_form", gettext("Parameters saved"));
|
|
}); |