From b1c992da61d459a5b2a9d4466692149bffe8c7c5 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 2 Apr 2009 19:40:41 +0000 Subject: [PATCH] rename Deluge.Ui to Deluge.UI --- deluge/ui/web/js/deluge-bars.js | 8 ++++---- deluge/ui/web/js/deluge-menus.js | 12 ++++++------ deluge/ui/web/js/deluge-ui.js | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/deluge/ui/web/js/deluge-bars.js b/deluge/ui/web/js/deluge-bars.js index 8e3909620..10441e3af 100644 --- a/deluge/ui/web/js/deluge-bars.js +++ b/deluge/ui/web/js/deluge-bars.js @@ -69,7 +69,7 @@ Deluge.ToolBar = { Deluge.Events.fire('torrentRemoved', ids); Deluge.Client.core.remove_torrent(ids, null, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); break; @@ -77,7 +77,7 @@ Deluge.ToolBar = { case 'resume': Deluge.Client.core[item.id + '_torrent'](ids, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); break; @@ -85,7 +85,7 @@ Deluge.ToolBar = { case 'down': Deluge.Client.core['queue_' + item.id](ids, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); break; @@ -466,7 +466,7 @@ Deluge.SideBar = { panel: this.panels[record.store.id] } - if (needsUpdate) Deluge.Ui.update(); + if (needsUpdate) Deluge.UI.update(); }, updateFilter: function(filter, states) { diff --git a/deluge/ui/web/js/deluge-menus.js b/deluge/ui/web/js/deluge-menus.js index d63d6d0cb..7cd86778b 100644 --- a/deluge/ui/web/js/deluge-menus.js +++ b/deluge/ui/web/js/deluge-menus.js @@ -34,7 +34,7 @@ Deluge.Menus = { case 'resume': Deluge.Client.core[item.id + '_torrent'](ids, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); break; @@ -44,14 +44,14 @@ Deluge.Menus = { case 'bottom': Deluge.Client.core['queue_' + item.id](ids, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); break; case 'update': Deluge.Client.core.force_reannounce(ids, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); break; @@ -59,14 +59,14 @@ Deluge.Menus = { Deluge.Events.fire('torrentRemoved', ids); Deluge.Client.core.remove_torrent(ids, null, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); break; case 'recheck': Deluge.Client.core.force_recheck(ids, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); break; @@ -411,7 +411,7 @@ function onLimitChanged(item, checked) { config[item.group] = item.id Deluge.Client.core.set_config(config, { onSuccess: function() { - Deluge.Ui.update(); + Deluge.UI.update(); } }); } diff --git a/deluge/ui/web/js/deluge-ui.js b/deluge/ui/web/js/deluge-ui.js index 3dc763b15..86ef629fc 100644 --- a/deluge/ui/web/js/deluge-ui.js +++ b/deluge/ui/web/js/deluge-ui.js @@ -22,7 +22,7 @@ Copyright: Boston, MA 02110-1301, USA. */ -Deluge.Ui = { +Deluge.UI = { initialize: function() { this.errorCount = 0; this.roar = new Roar({ @@ -156,5 +156,5 @@ Deluge.Ui = { } document.addEvent('domready', function(e) { - Deluge.Ui.initialize(); + Deluge.UI.initialize(); }); \ No newline at end of file