diff --git a/couchpotato/core/_base/updater/static/updater.js b/couchpotato/core/_base/updater/static/updater.js index 9f51b0c..cc17be5 100644 --- a/couchpotato/core/_base/updater/static/updater.js +++ b/couchpotato/core/_base/updater/static/updater.js @@ -90,17 +90,18 @@ var UpdaterBase = new Class({ doUpdate: function(){ var self = this; + App.blockPage('Please wait while CouchPotato is being updated with more awesome stuff.', 'Updating'); Api.request('updater.update', { 'onComplete': function(json){ - if(json.success){ + if(json.success) self.updating(); - } + else + App.unBlockPage() } }); }, updating: function(){ - App.blockPage('Please wait while CouchPotato is being updated with more awesome stuff.', 'Updating'); App.checkAvailable.delay(500, App, [1000, function(){ window.location.reload(); }]);