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:
parent
c46bc049d1
commit
f53dc5faaf
|
@ -48,7 +48,8 @@ Deluge.Keys = {
|
|||
'queue', 'name', 'total_size', 'state', 'progress', 'num_seeds',
|
||||
'total_seeds', 'num_peers', 'total_peers', 'download_payload_rate',
|
||||
'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_payload_upload', 'next_announce', 'tracker_status', 'num_pieces',
|
||||
'piece_length', 'is_auto_managed', 'active_time', 'seeding_time',
|
||||
'seed_rank', 'last_seen_complete', 'owner', 'public', 'shared'
|
||||
'seed_rank'
|
||||
],
|
||||
|
||||
/**
|
||||
|
|
|
@ -79,12 +79,15 @@ Ext.define('Deluge.Sidebar', {
|
|||
this.panels[filter] = panel;
|
||||
|
||||
panel.header.on('click', function(header) {
|
||||
var s = panel.getStore(),
|
||||
sm = panel.getSelectionModel();
|
||||
|
||||
if (!deluge.config.sidebar_multiple_filters) {
|
||||
deluge.ui.update();
|
||||
}
|
||||
if (!panel.getSelectionModel().hasSelection()) {
|
||||
panel.getSelectionModel().select(0);
|
||||
}
|
||||
//if (!sm.hasSelection() && s.count() > 0) {
|
||||
// sm.select([s.first()]);
|
||||
//}
|
||||
});
|
||||
this.fireEvent('filtercreate', this, panel);
|
||||
|
||||
|
|
|
@ -47,11 +47,11 @@ Ext.define('Deluge.details.DetailsPanel', {
|
|||
|
||||
initComponent: function() {
|
||||
this.callParent(arguments);
|
||||
this.add(new Deluge.details.StatusTab());
|
||||
this.add(new Deluge.details.DetailsTab());
|
||||
this.add(new Deluge.details.FilesTab());
|
||||
this.add(new Deluge.details.PeersTab());
|
||||
this.add(new Deluge.details.OptionsTab());
|
||||
this.add(Ext.create('Deluge.details.StatusTab'));
|
||||
this.add(Ext.create('Deluge.details.DetailsTab'));
|
||||
this.add(Ext.create('Deluge.details.FilesTab'));
|
||||
this.add(Ext.create('Deluge.details.PeersTab'));
|
||||
this.add(Ext.create('Deluge.details.OptionsTab'));
|
||||
},
|
||||
|
||||
clear: function() {
|
||||
|
|
Loading…
Reference in New Issue