rename button to Add

reflect changes in the javascript behind
This commit is contained in:
Damien Churchill 2008-10-14 01:26:58 +00:00
commit c6f6a110bc
2 changed files with 4 additions and 4 deletions

View file

@ -9,5 +9,5 @@
<div id="tabs" class="moouiTabs"></div> <div id="tabs" class="moouiTabs"></div>
<div id="buttons"> <div id="buttons">
<button class="cancel">Cancel</button> <button class="cancel">Cancel</button>
<button class="save">Save</button> <button class="add">Add</button>
</div> </div>

View file

@ -19,7 +19,7 @@ Deluge.Widgets.AddWindow = new Class({
this.parent(); this.parent();
this.bound = { this.bound = {
onLoad: this.onLoad.bindWithEvent(this), onLoad: this.onLoad.bindWithEvent(this),
onSave: this.onSave.bindWithEvent(this), onAdd: this.onAdd.bindWithEvent(this),
onCancel: this.onCancel.bindWithEvent(this), onCancel: this.onCancel.bindWithEvent(this),
onTorrentAdded: this.onTorrentAdded.bindWithEvent(this), onTorrentAdded: this.onTorrentAdded.bindWithEvent(this),
onTorrentChanged: this.onTorrentChanged.bindWithEvent(this) onTorrentChanged: this.onTorrentChanged.bindWithEvent(this)
@ -47,7 +47,7 @@ Deluge.Widgets.AddWindow = new Class({
this.urlWindow.show(); this.urlWindow.show();
}.bindWithEvent(this)); }.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); 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]); this.filesTab.setTorrent(this.torrentInfo[this.torrents.value]);
}, },
onSave: function(e) { onAdd: function(e) {
torrents = new Array(); torrents = new Array();
$each(this.torrentInfo, function(torrent) { $each(this.torrentInfo, function(torrent) {
torrents.include({ torrents.include({