mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 18:51:48 +08:00
Use Discourse.Resolver to load mobile templates when they exist
This commit is contained in:
@ -143,6 +143,8 @@ Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
||||
bootbox.animate(false);
|
||||
bootbox.backdrop(true); // clicking outside a bootbox modal closes it
|
||||
|
||||
this.set('mobile', $html.hasClass('mobile'));
|
||||
|
||||
setInterval(function(){
|
||||
Discourse.Formatter.updateRelativeAge($('.relative-date'));
|
||||
},60 * 1000);
|
||||
|
Reference in New Issue
Block a user