forked from extern/egroupware
set action.caption as tooltip, and provide an applicable class for item images
This commit is contained in:
parent
200c9e55fe
commit
d961343939
@ -161,7 +161,7 @@ var et2_toolbar = et2_DOMWidget.extend(
|
|||||||
.appendTo(this.div);
|
.appendTo(this.div);
|
||||||
if(action.iconUrl)
|
if(action.iconUrl)
|
||||||
{
|
{
|
||||||
button.prepend("<img src='"+action.iconUrl+"' class='et2_button_icon'/>");
|
button.prepend("<img src='"+action.iconUrl+"' title='"+action.caption+"' class='et2_button_icon'/>");
|
||||||
}
|
}
|
||||||
if(action.icon)
|
if(action.icon)
|
||||||
{
|
{
|
||||||
@ -181,6 +181,7 @@ var et2_toolbar = et2_DOMWidget.extend(
|
|||||||
|
|
||||||
button.click(action.id, jQuery.proxy(click, this));
|
button.click(action.id, jQuery.proxy(click, this));
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Link the actions to the DOM nodes / widget bits.
|
* Link the actions to the DOM nodes / widget bits.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user