Use Discourse.Resolver to load mobile templates when they exist

This commit is contained in:
Neil Lalonde
2013-08-27 13:41:36 -04:00
parent 89265c3a8b
commit 009dec833f
3 changed files with 20 additions and 1 deletions

View File

@ -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);