rename Deluge.Ui to Deluge.UI

This commit is contained in:
Damien Churchill 2009-04-02 19:40:41 +00:00
parent b07715862f
commit b1c992da61
3 changed files with 12 additions and 12 deletions

View File

@ -69,7 +69,7 @@ Deluge.ToolBar = {
Deluge.Events.fire('torrentRemoved', ids); Deluge.Events.fire('torrentRemoved', ids);
Deluge.Client.core.remove_torrent(ids, null, { Deluge.Client.core.remove_torrent(ids, null, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
break; break;
@ -77,7 +77,7 @@ Deluge.ToolBar = {
case 'resume': case 'resume':
Deluge.Client.core[item.id + '_torrent'](ids, { Deluge.Client.core[item.id + '_torrent'](ids, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
break; break;
@ -85,7 +85,7 @@ Deluge.ToolBar = {
case 'down': case 'down':
Deluge.Client.core['queue_' + item.id](ids, { Deluge.Client.core['queue_' + item.id](ids, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
break; break;
@ -466,7 +466,7 @@ Deluge.SideBar = {
panel: this.panels[record.store.id] panel: this.panels[record.store.id]
} }
if (needsUpdate) Deluge.Ui.update(); if (needsUpdate) Deluge.UI.update();
}, },
updateFilter: function(filter, states) { updateFilter: function(filter, states) {

View File

@ -34,7 +34,7 @@ Deluge.Menus = {
case 'resume': case 'resume':
Deluge.Client.core[item.id + '_torrent'](ids, { Deluge.Client.core[item.id + '_torrent'](ids, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
break; break;
@ -44,14 +44,14 @@ Deluge.Menus = {
case 'bottom': case 'bottom':
Deluge.Client.core['queue_' + item.id](ids, { Deluge.Client.core['queue_' + item.id](ids, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
break; break;
case 'update': case 'update':
Deluge.Client.core.force_reannounce(ids, { Deluge.Client.core.force_reannounce(ids, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
break; break;
@ -59,14 +59,14 @@ Deluge.Menus = {
Deluge.Events.fire('torrentRemoved', ids); Deluge.Events.fire('torrentRemoved', ids);
Deluge.Client.core.remove_torrent(ids, null, { Deluge.Client.core.remove_torrent(ids, null, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
break; break;
case 'recheck': case 'recheck':
Deluge.Client.core.force_recheck(ids, { Deluge.Client.core.force_recheck(ids, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
break; break;
@ -411,7 +411,7 @@ function onLimitChanged(item, checked) {
config[item.group] = item.id config[item.group] = item.id
Deluge.Client.core.set_config(config, { Deluge.Client.core.set_config(config, {
onSuccess: function() { onSuccess: function() {
Deluge.Ui.update(); Deluge.UI.update();
} }
}); });
} }

View File

@ -22,7 +22,7 @@ Copyright:
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
Deluge.Ui = { Deluge.UI = {
initialize: function() { initialize: function() {
this.errorCount = 0; this.errorCount = 0;
this.roar = new Roar({ this.roar = new Roar({
@ -156,5 +156,5 @@ Deluge.Ui = {
} }
document.addEvent('domready', function(e) { document.addEvent('domready', function(e) {
Deluge.Ui.initialize(); Deluge.UI.initialize();
}); });