From 6f0a937fa183c1904875dfcf3f468fbf9fdead26 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 22 Dec 2016 18:13:04 -0500 Subject: [PATCH] Resolve raw templates in 'javascripts/mobile' and 'javascripts' on mobile --- app/assets/javascripts/discourse/lib/raw-templates.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/raw-templates.js.es6 b/app/assets/javascripts/discourse/lib/raw-templates.js.es6 index d814b47064e..89734b18aed 100644 --- a/app/assets/javascripts/discourse/lib/raw-templates.js.es6 +++ b/app/assets/javascripts/discourse/lib/raw-templates.js.es6 @@ -2,7 +2,9 @@ import { getResolverOption } from 'discourse-common/resolver'; export function findRawTemplate(name) { if (getResolverOption('mobileView')) { - return Discourse.RAW_TEMPLATES[`mobile/${name}`] || + return Discourse.RAW_TEMPLATES[`javascripts/mobile/${name}`] || + Discourse.RAW_TEMPLATES[`javascripts/${name}`] || + Discourse.RAW_TEMPLATES[`mobile/${name}`] || Discourse.RAW_TEMPLATES[name]; }