mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
Fix resolver for mobile templates
This commit is contained in:
parent
99b6a62fcb
commit
c04613f269
@ -16,7 +16,7 @@ Discourse.Resolver = Ember.DefaultResolver.extend({
|
||||
@returns {Template} the template (if found)
|
||||
**/
|
||||
resolveTemplate: function(parsedName) {
|
||||
if (Discourse.Session.currentProp('mobileView')) {
|
||||
if (Discourse.Mobile.mobileView) {
|
||||
var mobileParsedName = this.parseName(parsedName.fullName.replace("template:", "template:mobile/"));
|
||||
var mobileTemplate = this.findTemplate(mobileParsedName);
|
||||
if (mobileTemplate) return mobileTemplate;
|
||||
|
Loading…
Reference in New Issue
Block a user