summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Benincasa <vbenincasa@gmail.com>2013-04-19 00:22:26 -0300
committerVictor Benincasa <vbenincasa@gmail.com>2013-04-19 00:22:26 -0300
commitef3f1dfca9c59b67965382e99648bbb120908ed0 (patch)
treeef9382cdb63bc4be22bba53985b39e8c88b5b79b
parentfe626833af5bcb251ae7d78afa863b896cb70547 (diff)
Small code optimization
Remove function argument as a local variable is used.
-rw-r--r--skins/larry/ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 75d38d9aa..1c76f9108 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -96,7 +96,7 @@ function rcube_mail_ui()
if (rcmail.env.action == 'show' || rcmail.env.action == 'preview') {
rcmail.addEventListener('aftershow-headers', function() { layout_messageview(); });
rcmail.addEventListener('afterhide-headers', function() { layout_messageview(); });
- $('#previewheaderstoggle').click(function(e){ toggle_preview_headers(this); return false });
+ $('#previewheaderstoggle').click(function(e){ toggle_preview_headers(); return false });
// add menu link for each attachment
$('#attachment-list > li').each(function() {
@@ -574,7 +574,7 @@ function rcube_mail_ui()
/**
* Switch between short and full headers display in message preview
*/
- function toggle_preview_headers(button)
+ function toggle_preview_headers()
{
$('#preview-shortheaders').toggle();
var full = $('#preview-allheaders').toggle(),