mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
WebUI: Fix unnecessary updates of torrent peers table
This commit is contained in:
parent
d3c38da04d
commit
b2839a6442
1 changed files with 7 additions and 1 deletions
|
@ -212,8 +212,11 @@ var DynamicTable = new Class({
|
|||
if (tr.hasClass('selected'))
|
||||
tr.removeClass('selected');
|
||||
}
|
||||
this.onSelectedRowChanged();
|
||||
},
|
||||
|
||||
onSelectedRowChanged : function () {},
|
||||
|
||||
updateRowData : function (data) {
|
||||
var rowId = data['rowId'];
|
||||
var row;
|
||||
|
@ -350,7 +353,6 @@ var DynamicTable = new Class({
|
|||
} else {
|
||||
// Simple selection
|
||||
this._this.selectRow(this.rowId);
|
||||
updatePropertiesPanel();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
@ -720,6 +722,10 @@ var TorrentsTable = new Class({
|
|||
|
||||
getCurrentTorrentHash : function () {
|
||||
return this.getSelectedRowId();
|
||||
},
|
||||
|
||||
onSelectedRowChanged : function () {
|
||||
updatePropertiesPanel();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue