mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add link in hamburger menu to switch between mobile and desktop views
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user