FIX: Allow resolution of `javascripts` prefixed raw templates

This commit is contained in:
Robin Ward 2016-12-20 11:53:43 -05:00
parent 16b236899c
commit da4e27ca7d
1 changed files with 2 additions and 1 deletions

View File

@ -6,5 +6,6 @@ export function findRawTemplate(name) {
Discourse.RAW_TEMPLATES[name];
}
return Discourse.RAW_TEMPLATES[name];
return Discourse.RAW_TEMPLATES[name] ||
Discourse.RAW_TEMPLATES[`javascripts/${name}`];
}