mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
clear oldData when clear() is issued which fixes data disappearing in the details tab
This commit is contained in:
parent
de9ba4986d
commit
6d83556ba8
1 changed files with 2 additions and 1 deletions
|
@ -82,6 +82,7 @@ Deluge.details.DetailsTab = Ext.extend(Ext.Panel, {
|
|||
for (var k in this.fields) {
|
||||
this.fields[k].dom.innerHTML = '';
|
||||
}
|
||||
this.oldData = {}
|
||||
},
|
||||
|
||||
update: function(torrentId) {
|
||||
|
@ -105,7 +106,7 @@ Deluge.details.DetailsTab = Ext.extend(Ext.Panel, {
|
|||
};
|
||||
|
||||
for (var field in this.fields) {
|
||||
if (!data[field]) continue; // this is a field we aren't responsible for.
|
||||
if (!Ext.isDefined(data[field])) continue; // this is a field we aren't responsible for.
|
||||
if (data[field] == this.oldData[field]) continue;
|
||||
this.fields[field].dom.innerHTML = Ext.escapeHTML(data[field]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue