diff options
author | Damien Churchill <damoxc@gmail.com> | 2011-06-13 00:02:53 +0100 |
---|---|---|
committer | Damien Churchill <damoxc@gmail.com> | 2011-10-05 01:36:57 +0100 |
commit | 5b45670a85b7c7167a23acb90f2d8b85e4ef009a (patch) | |
tree | 967072e9094783dcfd197adf583e2e7c8e0b2e79 /deluge/ui/web/js/deluge-all/add/OptionsPanel.js | |
parent | 6cdf9940d3635e9b83037e7f9d3b5f46f86d15d3 (diff) | |
download | deluge-5b45670a85b7c7167a23acb90f2d8b85e4ef009a.tar.gz deluge-5b45670a85b7c7167a23acb90f2d8b85e4ef009a.tar.bz2 deluge-5b45670a85b7c7167a23acb90f2d8b85e4ef009a.zip |
webui: first commit where the interface loads
At this point the interface loads, but it is misshapen and needs a lot more
work to get it fully extjs 4.0 compatible.
Diffstat (limited to 'deluge/ui/web/js/deluge-all/add/OptionsPanel.js')
-rw-r--r-- | deluge/ui/web/js/deluge-all/add/OptionsPanel.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/deluge/ui/web/js/deluge-all/add/OptionsPanel.js b/deluge/ui/web/js/deluge-all/add/OptionsPanel.js index 5578a4520..cfe2f1e47 100644 --- a/deluge/ui/web/js/deluge-all/add/OptionsPanel.js +++ b/deluge/ui/web/js/deluge-all/add/OptionsPanel.js @@ -1,7 +1,7 @@ /*! * Deluge.add.OptionsPanel.js - * - * Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com> + * + * Copyright (c) Damien Churchill 2009-2011 <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 @@ -29,9 +29,9 @@ * this exception statement from your version. If you delete this exception * statement from all source files in the program, then also delete it here. */ -Ext.ns('Deluge.add'); -Deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, { +Ext.define('Deluge.add.OptionsPanel', { + extend: 'Ext.TabPanel', torrents: {}, @@ -42,7 +42,7 @@ Deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, { height: 220, initComponent: function() { - Deluge.add.OptionsPanel.superclass.initComponent.call(this); + this.callParent(arguments); this.files = this.add(new Deluge.add.FilesTab()); this.form = this.add(new Deluge.add.OptionsTab()); @@ -61,7 +61,7 @@ Deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, { Ext.each(Ext.keys(fileIndexes), function(index) { priorities[index] = fileIndexes[index]; }); - + var oldId = this.form.optionsManager.changeId(torrent['info_hash'], true); this.form.optionsManager.setDefault('file_priorities', priorities); this.form.optionsManager.changeId(oldId, true); @@ -91,7 +91,7 @@ Deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, { this.torrentId = torrentId; this.form.optionsManager.changeId(torrentId); - + this.files.clearFiles(); var root = this.files.getRootNode(); var priorities = this.form.optionsManager.get('file_priorities'); @@ -120,7 +120,7 @@ Deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, { } else { var ret = callback(filename, type, entry, parentNode); } - + if (type == 'dir') this.walkFileTree(entry, callback, scope, ret); } }, @@ -142,7 +142,7 @@ Deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, { }, this); } else { this.files.setDownload(nodes[0], oldValue, true); - } + } }, scope: this, icon: Ext.MessageBox.QUESTION |