mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Fixed: UI notification after Sonarr updates
This commit is contained in:
parent
bf65807ef3
commit
59f487392e
@ -424,7 +424,7 @@
|
|||||||
connection.log("Negotiating with '" + url + "'.");
|
connection.log("Negotiating with '" + url + "'.");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
global: false,
|
global: true,
|
||||||
cache: false,
|
cache: false,
|
||||||
type: "GET",
|
type: "GET",
|
||||||
contentType: connection.contentType,
|
contentType: connection.contentType,
|
||||||
@ -758,7 +758,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
global: false,
|
global: true,
|
||||||
cache: false,
|
cache: false,
|
||||||
type: "GET",
|
type: "GET",
|
||||||
contentType: connection.contentType,
|
contentType: connection.contentType,
|
||||||
@ -861,7 +861,7 @@
|
|||||||
url = this.addQs(url, connection);
|
url = this.addQs(url, connection);
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
global: false,
|
global: true,
|
||||||
type: connection.ajaxDataType === "jsonp" ? "GET" : "POST",
|
type: connection.ajaxDataType === "jsonp" ? "GET" : "POST",
|
||||||
contentType: signalR._.defaultContentType,
|
contentType: signalR._.defaultContentType,
|
||||||
dataType: connection.ajaxDataType,
|
dataType: connection.ajaxDataType,
|
||||||
@ -899,7 +899,7 @@
|
|||||||
url: url,
|
url: url,
|
||||||
async: async,
|
async: async,
|
||||||
timeout: 1000,
|
timeout: 1000,
|
||||||
global: false,
|
global: true,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
contentType: connection.contentType,
|
contentType: connection.contentType,
|
||||||
dataType: connection.ajaxDataType,
|
dataType: connection.ajaxDataType,
|
||||||
@ -1665,7 +1665,7 @@
|
|||||||
connection.log("Attempting to connect to '" + url + "' using longPolling.");
|
connection.log("Attempting to connect to '" + url + "' using longPolling.");
|
||||||
instance.pollXhr = $.ajax({
|
instance.pollXhr = $.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
global: false,
|
global: true,
|
||||||
cache: false,
|
cache: false,
|
||||||
type: "GET",
|
type: "GET",
|
||||||
dataType: connection.ajaxDataType,
|
dataType: connection.ajaxDataType,
|
||||||
|
@ -2,7 +2,7 @@ var vent = require('vent');
|
|||||||
var AppLayout = require('../AppLayout');
|
var AppLayout = require('../AppLayout');
|
||||||
var Marionette = require('marionette');
|
var Marionette = require('marionette');
|
||||||
var NotFoundView = require('./NotFoundView');
|
var NotFoundView = require('./NotFoundView');
|
||||||
var Messenger = require('messenger');
|
var Messenger = require('./Messenger');
|
||||||
|
|
||||||
module.exports = Marionette.AppRouter.extend({
|
module.exports = Marionette.AppRouter.extend({
|
||||||
initialize : function() {
|
initialize : function() {
|
||||||
@ -41,7 +41,7 @@ module.exports = Marionette.AppRouter.extend({
|
|||||||
Messenger.show({
|
Messenger.show({
|
||||||
message : 'Sonarr has been updated',
|
message : 'Sonarr has been updated',
|
||||||
hideAfter : 0,
|
hideAfter : 0,
|
||||||
id : 'droneUpdated',
|
id : 'sonarrUpdated',
|
||||||
actions : {
|
actions : {
|
||||||
viewChanges : {
|
viewChanges : {
|
||||||
label : 'View Changes',
|
label : 'View Changes',
|
||||||
|
@ -10,4 +10,4 @@ $(document).ajaxSuccess(function(event, xhr) {
|
|||||||
if (version !== window.NzbDrone.Version) {
|
if (version !== window.NzbDrone.Version) {
|
||||||
vent.trigger(vent.Events.ServerUpdated);
|
vent.trigger(vent.Events.ServerUpdated);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user