diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index 13e133095..dd95eccfa 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -1192,7 +1192,7 @@ var TorrentsTable = new Class({ break; // do nothing case CATEGORIES_UNCATEGORIZED: if (row['full_data'].category.length !== 0) - return false + return false; break; // do nothing default: if (categoryHashInt !== genHash(row['full_data'].category)) @@ -1396,7 +1396,7 @@ var TorrentPeersTable = new Class({ // files 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)); }; @@ -1478,7 +1478,7 @@ var SearchResultsTable = new Class({ min: minSeeds, max: maxSeeds } - } + }; var filteredRows = []; var rows = this.rows.getValues();