Browse Source

Merge pull request #4619 from buinsky/WebUI_fix

WebUI: Fix unnecessary updates of peers table
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
de5381856d
  1. 8
      src/webui/www/public/scripts/dynamicTable.js

8
src/webui/www/public/scripts/dynamicTable.js

@ -212,8 +212,11 @@ var DynamicTable = new Class({ @@ -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({ @@ -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({ @@ -720,6 +722,10 @@ var TorrentsTable = new Class({
getCurrentTorrentHash : function () {
return this.getSelectedRowId();
},
onSelectedRowChanged : function () {
updatePropertiesPanel();
}
});

Loading…
Cancel
Save