mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 22:31:24 +08:00
Add 'dynamic favicon' setting
This commit is contained in:
@ -85,6 +85,14 @@ Discourse = Ember.Application.createWithMixins({
|
||||
}, 200);
|
||||
}.observes('title', 'hasFocus', 'notifyCount'),
|
||||
|
||||
faviconChanged: function() {
|
||||
if(Discourse.SiteSettings.dynamic_favicon) {
|
||||
$.faviconNotify(
|
||||
Discourse.SiteSettings.favicon_url, this.get('notifyCount')
|
||||
);
|
||||
}
|
||||
}.observes('notifyCount'),
|
||||
|
||||
// The classes of buttons to show on a post
|
||||
postButtons: function() {
|
||||
return Discourse.SiteSettings.post_menu.split("|").map(function(i) {
|
||||
|
Reference in New Issue
Block a user