Fix resolver for mobile templates

This commit is contained in:
Neil Lalonde 2013-09-17 14:08:41 -04:00
parent 99b6a62fcb
commit c04613f269

View File

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