When there's no social icon image URL, revert to "Image not found" image
This commit is contained in:
@@ -93,6 +93,7 @@ define([
|
||||
return {
|
||||
model: this.model.toJSON(),
|
||||
allIconSets: allIconSets.toJSON(),
|
||||
imageMissingSrc: App.getConfig().get('urls.imageMissing'),
|
||||
};
|
||||
},
|
||||
});
|
||||
|
@@ -1 +1 @@
|
||||
<a href="{{ link }}" onClick="return false;"><img src="{{#ifCond image '!=' ''}}{{ image }}{{ else }}{{ allIconSets.default.custom }}{{/ifCond}}" onerror="if (this.src != '{{ allIconSets.default.custom }}') this.src = '{{ allIconSets.default.custom }}';" alt="{{ text }}" style="width: {{ width }}; height: {{ height }};"/></a>
|
||||
<a href="{{ link }}" onClick="return false;"><img src="{{#ifCond image '!=' ''}}{{ image }}{{ else }}{{ imageMissingSrc }}{{/ifCond}}" onerror="if (this.src != '{{ imageMissingSrc }}') this.src = '{{ imageMissingSrc }}';" alt="{{ text }}" style="width: {{ width }}; height: {{ height }};"/></a>
|
||||
|
Reference in New Issue
Block a user