Reload after update

This commit is contained in:
Ruud committed 2012-05-27 23:30:29 +02:00
1 parent 5a3919cb08
commit 767ad46d90
2 files changed
+8 -11

No files matched your search

@@ -82,10 +82,11 @@ var UpdaterBase = new Class({
'onComplete': function(json){
if(json.success){
App.restart('Please wait while CouchPotato is being updated with more awesome stuff.', 'Updating');
App.checkAvailable.delay(500, App);
App.checkAvailable.delay(500, App, [1000, function(){
window.location.reload();
}]);
if(self.message)
self.message.destroy();
window.location.reload();
}
}
});