web: random fixes

Just a bunch of random fixes to improve the situation whilst
trying to convert over to extjs4.
This commit is contained in:
Damien Churchill 2011-10-05 01:29:47 +01:00
parent c46bc049d1
commit f53dc5faaf
3 changed files with 14 additions and 10 deletions

View File

@ -48,7 +48,8 @@ Deluge.Keys = {
'queue', 'name', 'total_size', 'state', 'progress', 'num_seeds', 'queue', 'name', 'total_size', 'state', 'progress', 'num_seeds',
'total_seeds', 'num_peers', 'total_peers', 'download_payload_rate', 'total_seeds', 'num_peers', 'total_peers', 'download_payload_rate',
'upload_payload_rate', 'eta', 'ratio', 'distributed_copies', 'upload_payload_rate', 'eta', 'ratio', 'distributed_copies',
'is_auto_managed', 'time_added', 'tracker_host', 'save_path', 'last_seen_complete' 'is_auto_managed', 'time_added', 'tracker_host', 'save_path',
'last_seen_complete', 'owner', 'public', 'shared'
], ],
/** /**
@ -63,7 +64,7 @@ Deluge.Keys = {
'total_done', 'total_payload_download', 'total_uploaded', 'total_done', 'total_payload_download', 'total_uploaded',
'total_payload_upload', 'next_announce', 'tracker_status', 'num_pieces', 'total_payload_upload', 'next_announce', 'tracker_status', 'num_pieces',
'piece_length', 'is_auto_managed', 'active_time', 'seeding_time', 'piece_length', 'is_auto_managed', 'active_time', 'seeding_time',
'seed_rank', 'last_seen_complete', 'owner', 'public', 'shared' 'seed_rank'
], ],
/** /**

View File

@ -79,12 +79,15 @@ Ext.define('Deluge.Sidebar', {
this.panels[filter] = panel; this.panels[filter] = panel;
panel.header.on('click', function(header) { panel.header.on('click', function(header) {
var s = panel.getStore(),
sm = panel.getSelectionModel();
if (!deluge.config.sidebar_multiple_filters) { if (!deluge.config.sidebar_multiple_filters) {
deluge.ui.update(); deluge.ui.update();
} }
if (!panel.getSelectionModel().hasSelection()) { //if (!sm.hasSelection() && s.count() > 0) {
panel.getSelectionModel().select(0); // sm.select([s.first()]);
} //}
}); });
this.fireEvent('filtercreate', this, panel); this.fireEvent('filtercreate', this, panel);

View File

@ -47,11 +47,11 @@ Ext.define('Deluge.details.DetailsPanel', {
initComponent: function() { initComponent: function() {
this.callParent(arguments); this.callParent(arguments);
this.add(new Deluge.details.StatusTab()); this.add(Ext.create('Deluge.details.StatusTab'));
this.add(new Deluge.details.DetailsTab()); this.add(Ext.create('Deluge.details.DetailsTab'));
this.add(new Deluge.details.FilesTab()); this.add(Ext.create('Deluge.details.FilesTab'));
this.add(new Deluge.details.PeersTab()); this.add(Ext.create('Deluge.details.PeersTab'));
this.add(new Deluge.details.OptionsTab()); this.add(Ext.create('Deluge.details.OptionsTab'));
}, },
clear: function() { clear: function() {