Show updating screen instantly. closes #1167
This commit is contained in:
1 parent
5e6aea97f7
commit
bbe8362b08
1 file changed
+4
-3
@@ -90,17 +90,18 @@ var UpdaterBase = new Class({
|
|||||||
doUpdate: function(){
|
doUpdate: function(){
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
App.blockPage('Please wait while CouchPotato is being updated with more awesome stuff.', 'Updating');
|
||||||
Api.request('updater.update', {
|
Api.request('updater.update', {
|
||||||
'onComplete': function(json){
|
'onComplete': function(json){
|
||||||
if(json.success){
|
if(json.success)
|
||||||
self.updating();
|
self.updating();
|
||||||
}
|
else
|
||||||
|
App.unBlockPage()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
updating: function(){
|
updating: function(){
|
||||||
App.blockPage('Please wait while CouchPotato is being updated with more awesome stuff.', 'Updating');
|
|
||||||
App.checkAvailable.delay(500, App, [1000, function(){
|
App.checkAvailable.delay(500, App, [1000, function(){
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
Reference in new issue
Block a user