add basic options panel

This commit is contained in:
Damien Churchill 2009-04-22 00:07:55 +00:00
parent a63e5c594c
commit 6d4eae15a5
1 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,48 @@
/*
Script: Deluge.Details.Options.js
The options tab displayed in the details panel.
Copyright:
(C) Damien Churchill 2009 <damoxc@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, write to:
The Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor
Boston, MA 02110-1301, USA.
*/
Ext.deluge.details.OptionsTab = Ext.extend(Ext.form.FormPanel, {
title: _('Options'),
cls: 'x-deluge-options',
onRender: function(ct, position) {
Ext.deluge.details.OptionsTab.superclass.onRender.call(this, ct, position);
},
clear: function() {
},
update: function(torrentId) {
Deluge.Client.core.get_torrent_status(torrentId, Deluge.Keys.Options, {
success: this.onRequestComplete,
scope: this,
torrentId: torrentId
});
},
onRequestComplete: function(torrent, options) {
}
});
Deluge.Details.add(new Ext.deluge.details.OptionsTab());