added global script/ajax error handling.

This commit is contained in:
kay.one
2013-01-26 13:07:34 -08:00
parent 4cca5d21b1
commit b393c11b27
10 changed files with 109 additions and 17 deletions

View File

@@ -10,7 +10,7 @@
/// <reference path="JsLibraries/backbone.marionette.extend.js" />
/// <reference path="JsLibraries/backbone.modelbinder.js" />
/// <reference path="JsLibraries/bootstrap.js" />
/// <reference path="errorHandler.js" />
/// <reference path="nzbdrone.logging.js" />
if (typeof console == "undefined") {
window.console = { log: function () { } };
@@ -74,6 +74,7 @@ NzbDrone.addInitializer(function (options) {
NzbDrone.addRegions({
mainRegion: "#main-region",
errorRegion: "#error-region",
});
NzbDrone.Router = new NzbDrone.Router();