Browse Source

Fix only the first newline char is replaced

Must use regex to replace all instances of newline chars.
adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
a0f3678163
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/www/private/scripts/dynamicTable.js

2
src/webui/www/private/scripts/dynamicTable.js

@ -1396,7 +1396,7 @@ var TorrentPeersTable = new Class({
// files // files
this.columns['files'].updateTd = function(td, row) { this.columns['files'].updateTd = function(td, row) {
td.innerHTML = escapeHtml(this.getRowValue(row, 0).replace('\n', ';')); td.innerHTML = escapeHtml(this.getRowValue(row, 0).replace(/\n/g, ';'));
td.title = escapeHtml(this.getRowValue(row, 0)); td.title = escapeHtml(this.getRowValue(row, 0));
}; };

Loading…
Cancel
Save