parent
8f8fe99a16
commit
8d03850de7
@ -0,0 +1,13 @@
|
||||
var $ = require('jquery');
|
||||
var vent = require('vent');
|
||||
|
||||
$(document).ajaxSuccess(function(event, xhr){
|
||||
var version = xhr.getResponseHeader('X-ApplicationVersion');
|
||||
if(!version || !window.NzbDrone || !window.NzbDrone.Version) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(version !== window.NzbDrone.Version) {
|
||||
vent.trigger(vent.Events.ServerUpdated);
|
||||
}
|
||||
});
|
Loading…
Reference in new issue