diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2015-03-12 12:35:21 +0100 |
---|---|---|
committer | Thomas Bruederli <bruederli@kolabsys.com> | 2015-03-12 13:33:07 +0100 |
commit | 78118e3f60d87637ec20cd0199ef029bd1e192b0 (patch) | |
tree | 42b8998fb2cdc994c884ba55f94b0f76e1f7bd22 /plugins/acl/acl.js | |
parent | 05b11f7ef0dd100110ee728770e3fa157b994ed0 (diff) |
Make ACL popups scale to the actual content and avoid scrolling if possible
Diffstat (limited to 'plugins/acl/acl.js')
-rw-r--r-- | plugins/acl/acl.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js index e6a84ff73..af52b5b6f 100644 --- a/plugins/acl/acl.js +++ b/plugins/acl/acl.js @@ -347,9 +347,12 @@ rcube_webmail.prototype.acl_init_form = function(id) buttons[this.gettext('save')] = function(e) { me.command('acl-save'); }; buttons[this.gettext('cancel')] = function(e) { me.command('acl-cancel'); }; + var popup_wrapper = $('<div style="width:480px; min-height:280px"></div>'); + this.acl_form.appendTo(popup_wrapper).show(); + // display it as popup this.acl_popup = this.show_popup_dialog( - '<div style="width:480px;height:280px"> </div>', + popup_wrapper, id ? this.gettext('acl.editperms') : this.gettext('acl.newuser'), buttons, { @@ -365,8 +368,6 @@ rcube_webmail.prototype.acl_init_form = function(id) } ); - this.acl_form.appendTo(this.acl_popup).show(); - if (type == 'user') name_input.focus(); else |