Aleksander Machniak
2016-03-28 46f7b7096450939fe03c95aa81ce06ae4bfca89d
plugins/acl/acl.js
@@ -344,13 +344,13 @@
    var buttons = {}, me = this, body = document.body;
    buttons[this.gettext('save')] = function(e) { me.command('acl-save'); };
    buttons[this.gettext('cancel')] = function(e) { me.command('acl-cancel'); };
    buttons[this.get_label('save')] = function(e) { me.command('acl-save'); };
    buttons[this.get_label('cancel')] = function(e) { me.command('acl-cancel'); };
    // display it as popup
    this.acl_popup = this.show_popup_dialog(
        '<div style="width:480px;height:280px">&nbsp;</div>',
        id ? this.gettext('acl.editperms') : this.gettext('acl.newuser'),
        this.acl_form.show(),
        id ? this.get_label('acl.editperms') : this.get_label('acl.newuser'),
        buttons,
        {
            button_classes: ['mainaction'],
@@ -364,8 +364,6 @@
            }
        }
    );
    this.acl_form.appendTo(this.acl_popup).show();
    if (type == 'user')
        name_input.focus();