Module: deluge Branch: master Commit: b13adbafbf36adea693b9b4c2434ea03a4f2ce62
Author: Damien Churchill <[email protected]> Date: Mon May 3 20:32:02 2010 +0100 add an ok icon and use it for the connection restored status --- deluge/ui/web/css/deluge.css | 4 ++++ deluge/ui/web/icons/ok.png | Bin 0 -> 905 bytes deluge/ui/web/js/deluge-all/UI.js | 5 ++++- 3 files changed, 8 insertions(+), 1 deletions(-) diff --git a/deluge/ui/web/css/deluge.css b/deluge/ui/web/css/deluge.css index 904d73a..7dc2246 100644 --- a/deluge/ui/web/css/deluge.css +++ b/deluge/ui/web/css/deluge.css @@ -379,6 +379,10 @@ dl.singleline dd { background-image: url('../icons/home.png') !important; } +.icon-ok { + background-image: url('../icons/ok.png') !important; +} + .icon-error { background-image: url('../icons/error.png') !important; } diff --git a/deluge/ui/web/icons/ok.png b/deluge/ui/web/icons/ok.png new file mode 100644 index 0000000..b3f7858 Binary files /dev/null and b/deluge/ui/web/icons/ok.png differ diff --git a/deluge/ui/web/js/deluge-all/UI.js b/deluge/ui/web/js/deluge-all/UI.js index 4f8efd8..50a129e 100644 --- a/deluge/ui/web/js/deluge-all/UI.js +++ b/deluge/ui/web/js/deluge-all/UI.js @@ -142,7 +142,10 @@ deluge.ui = { icon: Ext.MessageBox.ERROR }); deluge.events.fire('disconnect'); - deluge.statusbar.setStatus('Lost connection to webserver'); + deluge.statusbar.setStatus({ + iconCls: 'icon-ok', + text: 'Lost connection to webserver'} + ); this.checking = setInterval(this.checkConnection, 2000); } this.errorCount++; -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
