mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
DOMNode is available as third parameter since the first and second are reserved for event and widget
This commit is contained in:
parent
814e5d1204
commit
5cceb7febc
@ -742,12 +742,19 @@ app.classes.mail = AppJS.extend(
|
|||||||
* The widget to be expended is set in the event data.
|
* The widget to be expended is set in the event data.
|
||||||
*
|
*
|
||||||
* requires: mainWindow, one mail selected for preview
|
* requires: mainWindow, one mail selected for preview
|
||||||
*
|
*
|
||||||
|
* @param {jQuery event} event
|
||||||
|
* @param {Object} widget
|
||||||
* @param {DOMNode} button
|
* @param {DOMNode} button
|
||||||
*/
|
*/
|
||||||
showAllHeader: function(button) {
|
showAllHeader: function(event,widget,button) {
|
||||||
// Show list as a list
|
// Show list as a list
|
||||||
var list = jQuery(button).prev();
|
var list = jQuery(button).prev();
|
||||||
|
/* if (list.length <= 0)
|
||||||
|
{
|
||||||
|
list = jQuery(button.target).prev();
|
||||||
|
}*/
|
||||||
|
|
||||||
list.toggleClass('visible');
|
list.toggleClass('visible');
|
||||||
|
|
||||||
// Revert if user clicks elsewhere
|
// Revert if user clicks elsewhere
|
||||||
|
Loading…
Reference in New Issue
Block a user