diff --git a/mail/js/app.js b/mail/js/app.js index 9600a50d49..48faa62fda 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -742,12 +742,19 @@ app.classes.mail = AppJS.extend( * The widget to be expended is set in the event data. * * requires: mainWindow, one mail selected for preview - * + * + * @param {jQuery event} event + * @param {Object} widget * @param {DOMNode} button */ - showAllHeader: function(button) { + showAllHeader: function(event,widget,button) { // Show list as a list var list = jQuery(button).prev(); + /* if (list.length <= 0) + { + list = jQuery(button.target).prev(); + }*/ + list.toggleClass('visible'); // Revert if user clicks elsewhere