mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
template names are now case in-sensitive.
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
Marionette.TemplateCache.get = function (templateId) {
|
||||
var templateFunction = window.Templates[templateId];
|
||||
|
||||
var templateKey = templateId.toLowerCase();
|
||||
|
||||
var templateFunction = window.Templates[templateKey.toLowerCase()];
|
||||
|
||||
if (!templateFunction) {
|
||||
console.error('couldn\'t find pre-compiled template ' + templateId);
|
||||
throw 'couldn\'t find pre-compiled template ' + templateKey;
|
||||
}
|
||||
|
||||
var templateName = templateId;
|
||||
|
||||
return function (data) {
|
||||
|
||||
try {
|
||||
//console.log('rendering template ' + templateName);
|
||||
//console.log('rendering template ' + templateKey);
|
||||
return templateFunction(data);
|
||||
}
|
||||
catch (error) {
|
||||
console.error('template render failed for ' + templateName + ' ' + error.message);
|
||||
console.error('template render failed for ' + templateKey + ' ' + error.message);
|
||||
console.error(data);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<div>
|
||||
<img src="/static/content/images/404.png" style="height:400px; margin-top: 50px"/>
|
||||
<img src="/content/images/404.png" style="height:400px; margin-top: 50px"/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user