DOMNode is available as third parameter since the first and second are reserved for event and widget

This commit is contained in:
Hadi Nategh 2014-02-11 10:45:01 +00:00
parent 814e5d1204
commit 5cceb7febc

View File

@ -743,11 +743,18 @@ app.classes.mail = AppJS.extend(
*
* 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