Fix resolver for mobile templates

This commit is contained in:
Neil Lalonde 2013-09-17 14:08:41 -04:00
parent 99b6a62fcb
commit c04613f269
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ Discourse.Resolver = Ember.DefaultResolver.extend({
@returns {Template} the template (if found) @returns {Template} the template (if found)
**/ **/
resolveTemplate: function(parsedName) { resolveTemplate: function(parsedName) {
if (Discourse.Session.currentProp('mobileView')) { if (Discourse.Mobile.mobileView) {
var mobileParsedName = this.parseName(parsedName.fullName.replace("template:", "template:mobile/")); var mobileParsedName = this.parseName(parsedName.fullName.replace("template:", "template:mobile/"));
var mobileTemplate = this.findTemplate(mobileParsedName); var mobileTemplate = this.findTemplate(mobileParsedName);
if (mobileTemplate) return mobileTemplate; if (mobileTemplate) return mobileTemplate;