From 46f7b7096450939fe03c95aa81ce06ae4bfca89d Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 28 Mar 2016 06:51:43 -0400
Subject: [PATCH] Enable reply/reply-all/forward buttons also in preview frame of message/rfc822

---
 plugins/acl/acl.js |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js
index af52b5b..3647650 100644
--- a/plugins/acl/acl.js
+++ b/plugins/acl/acl.js
@@ -344,16 +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'); };
-
-    var popup_wrapper = $('<div style="width:480px; min-height:280px"></div>');
-    this.acl_form.appendTo(popup_wrapper).show();
+    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(
-        popup_wrapper,
-        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'],

--
Gitblit v1.9.1