Add link in hamburger menu to switch between mobile and desktop views

This commit is contained in:
Neil Lalonde
2013-08-29 15:19:28 -04:00
parent 4827634df9
commit 82bc6b677f
7 changed files with 36 additions and 6 deletions

View File

@ -143,7 +143,8 @@ Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
bootbox.animate(false);
bootbox.backdrop(true); // clicking outside a bootbox modal closes it
Discourse.Session.currentProp('mobile', $html.hasClass('mobile'))
Discourse.Session.currentProp('mobileDevice', $html.hasClass('mobile-device'));
Discourse.Session.currentProp('mobileView', $html.hasClass('mobile-view'));
setInterval(function(){
Discourse.Formatter.updateRelativeAge($('.relative-date'));