set action.caption as tooltip, and provide an applicable class for item images

This commit is contained in:
Klaus Leithoff 2013-10-11 13:34:35 +00:00
parent d961343939
commit 78e3371a2b

View File

@ -356,7 +356,8 @@ var et2_dropdown_button = et2_inputWidget.extend(
node.append(item);
if(item && options[key].icon)
{
$j('a',item).prepend('<img src="' + options[key].icon +'"/>');
// we supply a applicable class for item images
$j('a',item).prepend('<img class="et2_button_icon" src="' + options[key].icon +'"/>');
}
}
}