1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

minor fixes

This commit is contained in:
kay.one 2013-06-24 22:12:42 -07:00
parent 28c93aa947
commit 8745902d3b
6 changed files with 15 additions and 16 deletions

View File

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

View File

@ -1,4 +1,4 @@
'use strict';
'use strict';
(function () {
if (!window.console) {
@ -32,7 +32,8 @@
window.Messenger().post(message);
} catch (error) {
}
catch (error) {
console.log('An error occurred while reporting error. ' + error);
console.log(msg);
window.alert('Couldn\'t report JS error. ' + msg);
@ -62,7 +63,8 @@
if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) {
return false;
//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);
}

View File

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

View File

@ -1,5 +1,4 @@

'use strict';
'use strict';
define(
[
'backbone'

View File

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

View File

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