|
|
@ -26,7 +26,7 @@ define(function () {
|
|
|
|
var message = {
|
|
|
|
var message = {
|
|
|
|
message : messageText,
|
|
|
|
message : messageText,
|
|
|
|
type : 'error',
|
|
|
|
type : 'error',
|
|
|
|
hideAfter: 1000,
|
|
|
|
hideAfter : 1000,
|
|
|
|
showCloseButton: true
|
|
|
|
showCloseButton: true
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -55,18 +55,17 @@ define(function () {
|
|
|
|
|
|
|
|
|
|
|
|
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) {
|
|
|
|
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 = ajaxOptions.type + " " + ajaxOptions.url + " : " + xmlHttpRequest.statusText;
|
|
|
|
message.message = "[{0}] {1} : {2}".format(ajaxOptions.type, xmlHttpRequest.statusText, ajaxOptions.url);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
window.Messenger().post(message);
|
|
|
|
window.Messenger().post(message);
|
|
|
|
alert('test');
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|