mirror of https://github.com/lidarr/Lidarr
some formatting
This commit is contained in:
parent
2fdb0513e8
commit
a2095f6f29
|
@ -1,5 +1,4 @@
|
||||||
define(
|
define([
|
||||||
[
|
|
||||||
'jquery',
|
'jquery',
|
||||||
'messenger'
|
'messenger'
|
||||||
], function ($, Messenger) {
|
], function ($, Messenger) {
|
||||||
|
@ -29,10 +28,10 @@
|
||||||
var messageText = filename + ' : ' + line + '</br>' + msg;
|
var messageText = filename + ' : ' + line + '</br>' + msg;
|
||||||
|
|
||||||
var message = {
|
var message = {
|
||||||
message : messageText,
|
message : messageText,
|
||||||
type : 'error',
|
type : 'error',
|
||||||
hideAfter : 1000,
|
hideAfter : 1000,
|
||||||
showCloseButton: true
|
showCloseButton : true
|
||||||
};
|
};
|
||||||
|
|
||||||
new Messenger().post(message);
|
new Messenger().post(message);
|
||||||
|
@ -62,9 +61,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var message = {
|
var message = {
|
||||||
type : 'error',
|
type : 'error',
|
||||||
hideAfter : 1000,
|
hideAfter : 1000,
|
||||||
showCloseButton: true
|
showCloseButton : true
|
||||||
};
|
};
|
||||||
|
|
||||||
if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) {
|
if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) {
|
||||||
|
|
|
@ -4,7 +4,8 @@ String.prototype.format = function () {
|
||||||
return this.replace(/{(\d+)}/g, function (match, number) {
|
return this.replace(/{(\d+)}/g, function (match, number) {
|
||||||
if (typeof args[number] !== 'undefined') {
|
if (typeof args[number] !== 'undefined') {
|
||||||
return args[number];
|
return args[number];
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue