From 5cceb7febce46903c449a61650aa9455a3e7cc47 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 11 Feb 2014 10:45:01 +0000 Subject: [PATCH] DOMNode is available as third parameter since the first and second are reserved for event and widget --- mail/js/app.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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