minor fixes

pull/4/head
kay.one 12 years ago
parent 28c93aa947
commit 8745902d3b

@ -1,4 +1,4 @@
'use strict'; 'use strict';
define( define(
[ [
'backbone', 'backbone',

@ -1,4 +1,4 @@
'use strict'; 'use strict';
(function () { (function () {
if (!window.console) { if (!window.console) {
@ -32,7 +32,8 @@
window.Messenger().post(message); window.Messenger().post(message);
} catch (error) { }
catch (error) {
console.log('An error occurred while reporting error. ' + error); console.log('An error occurred while reporting error. ' + error);
console.log(msg); console.log(msg);
window.alert('Couldn\'t report JS error. ' + msg); window.alert('Couldn\'t report JS error. ' + msg);
@ -62,7 +63,8 @@
if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) { if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) {
return false; return false;
//message.message = 'NzbDrone Server Not Reachable. make sure NzbDrone is running.'; //message.message = 'NzbDrone Server Not Reachable. make sure NzbDrone is running.';
} else { }
else {
message.message = '[{0}] {1} : {2}'.format(ajaxOptions.type, xmlHttpRequest.statusText, ajaxOptions.url); message.message = '[{0}] {1} : {2}'.format(ajaxOptions.type, xmlHttpRequest.statusText, ajaxOptions.url);
} }

@ -1,4 +1,4 @@
'use strict'; 'use strict';
define( define(
[ [
'backbone' 'backbone'

@ -1,5 +1,4 @@
 'use strict';
'use strict';
define( define(
[ [
'backbone' 'backbone'

@ -2,11 +2,11 @@
define( define(
[ [
'backbone', 'backbone',
'Quality/QualityProfileCollection', 'Quality/QualityProfileCollection'
], function (Backbone, QualityProfileCollection) { ], function (Backbone, QualityProfileCollection) {
return Backbone.Model.extend({ return Backbone.Model.extend({
urlRoot: Constants.ApiRoot + '/series', urlRoot: ApiRoot + '/series',
mutators: { mutators: {
percentOfEpisodes: function () { percentOfEpisodes: function () {

@ -28,12 +28,11 @@ require.config({
shim: { shim: {
$: { $: {
exports: '$', deps :
init : function () { [
window.Constants = { 'Instrumentation/ErrorHandler'
ApiRoot: '/api' ],
}; exports: '$'
}
}, },
@ -163,7 +162,6 @@ define(
'marionette', 'marionette',
'shared/modal/region', 'shared/modal/region',
'Instrumentation/StringFormat', 'Instrumentation/StringFormat',
'Instrumentation/ErrorHandler'
], function (Marionette, ModalRegion) { ], function (Marionette, ModalRegion) {
require( require(

Loading…
Cancel
Save