Commit bf105db2 authored by Steffen van Bergerem's avatar Steffen van Bergerem Committed by Benjamin Neff

Use setupAvatarFallback in tags and notification dropdown view

parent bcb75e30
......@@ -96,7 +96,7 @@ app.views.NotificationDropdown = app.views.Base.extend({
afterNotificationChanges: function(node) {
node.find(".unread-toggle .entypo-eye").tooltip("destroy").tooltip();
node.find(this.avatars.selector).on("error", this.avatars.fallback);
this.setupAvatarFallback(node);
},
finishLoading: function() {
......
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
app.views.Tags = Backbone.View.extend({
app.views.Tags = app.views.Base.extend({
initialize: function(opts) {
if(app.publisher) {
app.publisher.setText("#"+ opts.hashtagName + " ");
}
// add avatar fallback if it can't be loaded
$(app.views.Base.prototype.avatars.selector).on("error", app.views.Base.prototype.avatars.fallback);
this.setupAvatarFallback($("#tags_show"));
}
});
// @license-end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment