mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
moved all backbone/bootstrap files to _backboneApp
This commit is contained in:
parent
f34a8edcbc
commit
2112a8f9fa
125 changed files with 326 additions and 46502 deletions
|
@ -0,0 +1,20 @@
|
|||
_.extend(Marionette.TemplateCache.prototype, {
|
||||
|
||||
loadTemplate: function (templateId) {
|
||||
|
||||
var template = "<div class='alert alert-error'>TEMPLATE [" + templateId + "] NOT FOUND</div>";
|
||||
|
||||
jQuery.ajax({
|
||||
url: 'Backbone.NzbDrone//' + templateId + '.html',
|
||||
async: false
|
||||
|
||||
}).done(function (data) {
|
||||
template = data;
|
||||
|
||||
}).fail(function (data) {
|
||||
console.log("couldn't load template " + this.templateId + " Error: " + data.statusText);
|
||||
});
|
||||
|
||||
return template;
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue