Bug #18517
closedAdd icon to selected entry (currently icons are only shown in dropdown)
0%
Description
The dropdown boxes currently show icons in the dropdown menu, but not in the closed dropdown. This can be seen in e.g. the 'Type' field in a Page Element.
The attached patch add this.
As all this patch does is attach a style attribute to the select tag, the risk is very low.
Note that the patch uses it's own styling, since using the styling from function optionTagStyle() makes the dropdown box look bad.
Note: Opera does not show icons at all in the dropdown - with or without this patch.
(issue imported from #M7962)
Files
Updated by Kasper Ligaard over 16 years ago
Added small screenshot, showing the selector box after applying the patch.
Updated by Kasper Ligaard over 16 years ago
Oliver Hader reports a cosmetic problem for extensions without icons. Screenshot of problem and a patch uploaded shortly.
Updated by Kasper Ligaard over 16 years ago
It appears that the getIcon function returns 'gfx/' when no image is found(!). This nullifies the intended effect of the previous patch. Rev2 of the patch (uploaded shortly) fixes this by instead looking the icon info returned (which is empty).