mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-09 01:55:04 +00:00
Fix the disabling and clearing of the torrent details tabs
This commit is contained in:
parent
f26870ad19
commit
b54c73d466
@ -46,6 +46,24 @@ input {
|
|||||||
|
|
||||||
|
|
||||||
/* Torrent Details */
|
/* Torrent Details */
|
||||||
|
#torrentDetails dl {
|
||||||
|
float: left;
|
||||||
|
min-height: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#torrentDetails dl dt {
|
||||||
|
float: left;
|
||||||
|
font-weight: bold;
|
||||||
|
height: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#torrentDetails dl dd {
|
||||||
|
margin-left: 100px;
|
||||||
|
width: 140px;
|
||||||
|
height: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Torrent Details - Status Tab */
|
||||||
.x-deluge-status-progressbar {
|
.x-deluge-status-progressbar {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
@ -54,23 +72,6 @@ input {
|
|||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-deluge-status dl {
|
|
||||||
float: left;
|
|
||||||
min-height: 120px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.x-deluge-status dl dt {
|
|
||||||
float: left;
|
|
||||||
font-weight: bold;
|
|
||||||
height: 19px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.x-deluge-status dl dd {
|
|
||||||
margin-left: 100px;
|
|
||||||
width: 140px;
|
|
||||||
height: 19px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.x-deluge-status dd.downloaded,
|
.x-deluge-status dd.downloaded,
|
||||||
.x-deluge-status dd.uploaded,
|
.x-deluge-status dd.uploaded,
|
||||||
.x-deluge-status dd.share,
|
.x-deluge-status dd.share,
|
||||||
@ -94,11 +95,12 @@ input {
|
|||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-deluge-status form br {
|
/* Torrent Details - Details Tab */
|
||||||
clear: left;
|
#torrentDetails dd.torrent_name,
|
||||||
}
|
#torrentDetails dd.status,
|
||||||
|
#torrentDetails dd.tracker,
|
||||||
.x-deluge-status dd.torrent_name, .x-deluge-status dd.status, .x-deluge-status dd.tracker, .x-deluge-status dd.path, .x-deluge-status dd.comment {
|
#torrentDetails dd.path,
|
||||||
|
#torrentDetails dd.comment {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ Copyright:
|
|||||||
|
|
||||||
Ext.deluge.details.DetailsTab = Ext.extend(Ext.Panel, {
|
Ext.deluge.details.DetailsTab = Ext.extend(Ext.Panel, {
|
||||||
title: _('Details'),
|
title: _('Details'),
|
||||||
cls: 'x-deluge-status',
|
bodyStyle: 'padding 5px',
|
||||||
|
|
||||||
onRender: function(ct, position) {
|
onRender: function(ct, position) {
|
||||||
Ext.deluge.details.DetailsTab.superclass.onRender.call(this, ct, position);
|
Ext.deluge.details.DetailsTab.superclass.onRender.call(this, ct, position);
|
||||||
@ -42,6 +42,7 @@ Ext.deluge.details.DetailsTab = Ext.extend(Ext.Panel, {
|
|||||||
url: '/render/tab_details.html',
|
url: '/render/tab_details.html',
|
||||||
text: _('Loading') + '...'
|
text: _('Loading') + '...'
|
||||||
});
|
});
|
||||||
|
this.body.setStyle('padding', '5px');
|
||||||
this.getUpdater().on('update', this.onPanelUpdate, this);
|
this.getUpdater().on('update', this.onPanelUpdate, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -69,7 +69,6 @@ Ext.deluge.details.StatusTab = Ext.extend(Ext.Panel, {
|
|||||||
for (var k in this.fields) {
|
for (var k in this.fields) {
|
||||||
this.fields[k].innerHTML = '';
|
this.fields[k].innerHTML = '';
|
||||||
}
|
}
|
||||||
this.disable();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
update: function(torrentId) {
|
update: function(torrentId) {
|
||||||
|
@ -39,6 +39,7 @@ Copyright:
|
|||||||
constructor: function(config) {
|
constructor: function(config) {
|
||||||
config = Ext.apply({
|
config = Ext.apply({
|
||||||
region: 'south',
|
region: 'south',
|
||||||
|
id: 'torrentDetails',
|
||||||
split: true,
|
split: true,
|
||||||
height: 220,
|
height: 220,
|
||||||
minSize: 100,
|
minSize: 100,
|
||||||
@ -51,7 +52,10 @@ Copyright:
|
|||||||
|
|
||||||
clear: function() {
|
clear: function() {
|
||||||
this.items.each(function(panel) {
|
this.items.each(function(panel) {
|
||||||
if (panel.clear) panel.clear();
|
if (panel.clear) {
|
||||||
|
panel.clear.defer(100, panel);
|
||||||
|
panel.disable();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -59,9 +63,9 @@ Copyright:
|
|||||||
update: function(tab) {
|
update: function(tab) {
|
||||||
var torrent = Deluge.Torrents.getSelected();
|
var torrent = Deluge.Torrents.getSelected();
|
||||||
if (!torrent) {
|
if (!torrent) {
|
||||||
this.items.each(function(tab) {
|
/*this.items.each(function(tab) {
|
||||||
tab.disable();
|
tab.disable();
|
||||||
});
|
});*/
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user