From 0f44b06197bc0abb5759b024db07e4f46cd64539 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Fri, 20 Mar 2009 19:08:40 +0000 Subject: [PATCH] rename the messagebox classes as they are clashing with the state ones --- deluge/ui/web/css/deluge.css | 4 ++-- deluge/ui/web/js/deluge-bars.js | 3 +-- deluge/ui/web/js/deluge-connections.js | 2 +- deluge/ui/web/js/deluge-login.js | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/deluge/ui/web/css/deluge.css b/deluge/ui/web/css/deluge.css index d748b2266..46a18d001 100644 --- a/deluge/ui/web/css/deluge.css +++ b/deluge/ui/web/css/deluge.css @@ -163,10 +163,10 @@ input { } /* MessageBox icon styles */ -.x-deluge-warning { +.x-deluge-icon-warning { background: url('/icons/16/warning.png') no-repeat 2px; } -.x-deluge-error { +.x-deluge-icon-error { background: url('/icons/16/error.png') no-repeat 2px; } \ No newline at end of file diff --git a/deluge/ui/web/js/deluge-bars.js b/deluge/ui/web/js/deluge-bars.js index 5b7032485..ddf4b7e43 100644 --- a/deluge/ui/web/js/deluge-bars.js +++ b/deluge/ui/web/js/deluge-bars.js @@ -343,8 +343,7 @@ Deluge.SideBar = { }, renderer: function(value, p, r) { - var lname = value.toLowerCase(); - lname = lname.replace('.', '_'); + var lname = value.toLowerCase().replace('.', '_'); var image = ''; if (r.store.id == 'tracker_host') { diff --git a/deluge/ui/web/js/deluge-connections.js b/deluge/ui/web/js/deluge-connections.js index 358967f4c..f021d2905 100644 --- a/deluge/ui/web/js/deluge-connections.js +++ b/deluge/ui/web/js/deluge-connections.js @@ -84,7 +84,7 @@ Deluge.Connections = { buttons: Ext.MessageBox.OK, modal: false, icon: Ext.MessageBox.ERROR, - iconCls: 'x-deluge-error' + iconCls: 'x-deluge-icon-error' }); } } diff --git a/deluge/ui/web/js/deluge-login.js b/deluge/ui/web/js/deluge-login.js index 724d24eb9..906bd0cd6 100644 --- a/deluge/ui/web/js/deluge-login.js +++ b/deluge/ui/web/js/deluge-login.js @@ -38,7 +38,7 @@ Deluge.Login = { buttons: Ext.MessageBox.OK, modal: false, icon: Ext.MessageBox.WARNING, - iconCls: 'x-deluge-warning' + iconCls: 'x-deluge-icon-warning' }); } }