From 577d8adec4189c35359e8b63b8ea1d5b18dbbe28 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 21 Jan 2013 21:43:47 -0800 Subject: [PATCH] better template load error message. --- .../_backboneApp/JsLibraries/backbone.marionette.extend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Web/_backboneApp/JsLibraries/backbone.marionette.extend.js b/NzbDrone.Web/_backboneApp/JsLibraries/backbone.marionette.extend.js index 2e8c9323c..fcfafb4b2 100644 --- a/NzbDrone.Web/_backboneApp/JsLibraries/backbone.marionette.extend.js +++ b/NzbDrone.Web/_backboneApp/JsLibraries/backbone.marionette.extend.js @@ -2,7 +2,7 @@ loadTemplate: function (templateId) { - var template = "
TEMPLATE [" + templateId + "] NOT FOUND
"; + var template; jQuery.ajax({ url: 'Backbone.NzbDrone//' + templateId + '.html', @@ -13,6 +13,7 @@ }).fail(function (data) { console.log("couldn't load template " + this.templateId + " Error: " + data.statusText); + template = "
Couldn't load template '" + templateId + "'. Status: " + data.statusText + "
"; }); return template;