Force update on version click

This commit is contained in:
Ruud committed 2012-01-29 17:21:10 +01:00
1 parent ae038bc416
commit 5521e6c07b
3 files changed
+28 -1

No files matched your search

+5
View File
@@ -31,6 +31,7 @@ class Updater(Plugin):
addApiView('updater.info', self.getInfo)
addApiView('updater.update', self.doUpdateView)
addApiView('updater.check', self.checkView)
def getInfo(self):
@@ -90,6 +91,10 @@ class Updater(Plugin):
self.last_check = time.time()
def checkView(self):
self.check()
return self.getInfo()
def doUpdateView(self):
return jsonified({
'success': self.doUpdate()
@@ -12,6 +12,15 @@ var UpdaterBase = new Class({
});
},
check: function(onComplete){
var self = this;
Api.request('updater.check', {
'onComplete': onComplete || Function.from()
})
},
info: function(timeout){
var self = this;