Give feedback if no update

This commit is contained in:
Ruud committed 2012-07-01 00:49:07 +02:00
1 parent f15351aa73
commit 6162ea9f42
3 files changed
+6 -3

No files matched your search

@@ -22,8 +22,10 @@ var UpdaterBase = new Class({
if(json.update_available) if(json.update_available)
self.doUpdate(); self.doUpdate();
else else {
App.unBlockPage() App.unBlockPage();
App.fireEvent('message', 'No updates available');
}
} }
}) })
@@ -11,6 +11,7 @@ var NotificationBase = new Class({
App.addEvent('unload', self.stopPoll.bind(self)); App.addEvent('unload', self.stopPoll.bind(self));
App.addEvent('reload', self.startInterval.bind(self, [true])); App.addEvent('reload', self.startInterval.bind(self, [true]));
App.addEvent('notification', self.notify.bind(self)); App.addEvent('notification', self.notify.bind(self));
App.addEvent('message', self.showMessage.bind(self));
// Add test buttons to settings page // Add test buttons to settings page
App.addEvent('load', self.addTestButtons.bind(self)); App.addEvent('load', self.addTestButtons.bind(self));
+1 -1
View File
@@ -80,7 +80,7 @@ var CouchPotato = new Class({
} }
}), }),
new Element('a', { new Element('a', {
'text': 'Check for updates', 'text': 'Update to latest',
'events': { 'events': {
'click': self.checkForUpdate.bind(self, null) 'click': self.checkForUpdate.bind(self, null)
} }