From ef3f1dfca9c59b67965382e99648bbb120908ed0 Mon Sep 17 00:00:00 2001 From: Victor Benincasa Date: Fri, 19 Apr 2013 00:22:26 -0300 Subject: Small code optimization Remove function argument as a local variable is used. --- skins/larry/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'skins') 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(), -- cgit v1.2.3