Use setupAvatarFallback in tags and notification dropdown view
This commit is contained in:
parent
bcb75e3082
commit
bf105db297
2 changed files with 3 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
// @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
|
||||
|
|
|
|||
Loading…
Reference in a new issue