From c6f6a110bcb695832b64d5de2c1cf375fedcc9d4 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 14 Oct 2008 01:26:58 +0000 Subject: [PATCH] rename button to Add reflect changes in the javascript behind --- .../templates/ajax/render/html/window_add_torrent.html | 2 +- deluge/ui/webui/templates/ajax/static/js/deluge-add.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deluge/ui/webui/templates/ajax/render/html/window_add_torrent.html b/deluge/ui/webui/templates/ajax/render/html/window_add_torrent.html index c0eec3c47..d47c44ab5 100644 --- a/deluge/ui/webui/templates/ajax/render/html/window_add_torrent.html +++ b/deluge/ui/webui/templates/ajax/render/html/window_add_torrent.html @@ -9,5 +9,5 @@
- +
diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge-add.js b/deluge/ui/webui/templates/ajax/static/js/deluge-add.js index eefdb44a6..35cec3ca9 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-add.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-add.js @@ -19,7 +19,7 @@ Deluge.Widgets.AddWindow = new Class({ this.parent(); this.bound = { onLoad: this.onLoad.bindWithEvent(this), - onSave: this.onSave.bindWithEvent(this), + onAdd: this.onAdd.bindWithEvent(this), onCancel: this.onCancel.bindWithEvent(this), onTorrentAdded: this.onTorrentAdded.bindWithEvent(this), onTorrentChanged: this.onTorrentChanged.bindWithEvent(this) @@ -47,7 +47,7 @@ Deluge.Widgets.AddWindow = new Class({ this.urlWindow.show(); }.bindWithEvent(this)); - this.content.getElement('button.save').addEvent('click', this.bound.onSave); + this.content.getElement('button.add').addEvent('click', this.bound.onAdd); this.content.getElement('button.cancel').addEvent('click', this.bound.onCancel); }, @@ -65,7 +65,7 @@ Deluge.Widgets.AddWindow = new Class({ this.filesTab.setTorrent(this.torrentInfo[this.torrents.value]); }, - onSave: function(e) { + onAdd: function(e) { torrents = new Array(); $each(this.torrentInfo, function(torrent) { torrents.include({