From 2355045dedc96274ca6b1c29612006e736b6f540 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 20 May 2013 10:32:52 +0200 Subject: Change Reply-All button label/title when mailing list is detected (#1488938) --- program/js/app.js | 1 + program/js/common.js | 3 +-- program/steps/mail/func.inc | 2 +- program/steps/mail/show.inc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'program') diff --git a/program/js/app.js b/program/js/app.js index b98272493..1f0b95410 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1179,6 +1179,7 @@ function rcube_webmail() if (typeof cmd === 'string') { this.commands[cmd] = enable; this.set_button(cmd, (enable ? 'act' : 'pas')); + this.triggerEvent('enable-command', {command: cmd, status: enable}); } // push array elements into commands array else { diff --git a/program/js/common.js b/program/js/common.js index f7c0a7536..53dce8cc2 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -298,8 +298,7 @@ addEventListener: function(evt, func, obj) if (!this._events[evt]) this._events[evt] = []; - var e = {func:func, obj:obj ? obj : window}; - this._events[evt][this._events[evt].length] = e; + this._events[evt].push({func:func, obj:obj ? obj : window}); }, /** diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index fc22366c0..661d3fbbb 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -120,7 +120,7 @@ if (empty($RCMAIL->action) || $RCMAIL->action == 'list') { if (!$OUTPUT->ajax_call) $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage', 'copyingmessage', 'deletingmessage', 'markingmessage', - 'copy', 'move', 'quota'); + 'copy', 'move', 'quota', 'replyall', 'replylist'); $pagetitle = $RCMAIL->localize_foldername($RCMAIL->storage->mod_folder($mbox_name), true); $pagetitle = str_replace($delimiter, " \xC2\xBB ", $pagetitle); diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index 2ad1ba9bd..d8d4372f9 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -116,7 +116,7 @@ if ($uid) { if (!$OUTPUT->ajax_call) $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', - 'movingmessage', 'deletingmessage', 'markingmessage'); + 'movingmessage', 'deletingmessage', 'markingmessage', 'replyall', 'replylist'); $prefer_html = $RCMAIL->config->get('prefer_html'); if ($MESSAGE->has_html_part()) { -- cgit v1.2.3