Addition of default alt-text to all ImageIcon's
Change-Id: Ia81f3d8a5f5a7782b015857d3adc4b87a97f156e
This commit is contained in:
parent
04be355dce
commit
73c8de7a42
@ -65,6 +65,9 @@ public class ImageIcon extends Image {
|
||||
if(alt != null){
|
||||
add(new AttributeAppender("alt", true, new Model<String>(alt), " "));
|
||||
}
|
||||
else {
|
||||
add(new AttributeAppender("alt", true, new Model<String>(name), " "));
|
||||
}
|
||||
}
|
||||
|
||||
public ImageIcon(String id, String name){
|
||||
|
Loading…
x
Reference in New Issue
Block a user