use empty template for JobList and CorpusList. performance++

This commit is contained in:
Patrick Jentsch 2020-01-28 16:42:15 +01:00
parent 93dcd7c32f
commit c9f5488a24
2 changed files with 2 additions and 11 deletions

View File

@ -112,11 +112,7 @@ class CorpusList extends List {
function(items) {items[0].elm = rowElement;}); function(items) {items[0].elm = rowElement;});
} }
} }
CorpusList.DEFAULT_OPTIONS = {item: `<div> CorpusList.DEFAULT_OPTIONS = {item: "",
<span class="description"></span>
<td class="status"></td>
<span class="title"></span>
</div>`,
page: 4, page: 4,
pagination: {innerWindow: 8, outerWindow: 1}, pagination: {innerWindow: 8, outerWindow: 1},
valueNames: ["description", "title", {data: ["id"]}]}; valueNames: ["description", "title", {data: ["id"]}]};

View File

@ -113,12 +113,7 @@ class JobList extends List {
function(items) {items[0].elm = rowElement;}); function(items) {items[0].elm = rowElement;});
} }
} }
JobList.DEFAULT_OPTIONS = {item: `<tr> JobList.DEFAULT_OPTIONS = {item: "",
<td class="description"></td>
<td class="service"></td>
<td class="status"></td>
<td class="title"></td>
</tr>`,
page: 4, page: 4,
pagination: {innerWindow: 8, outerWindow: 1}, pagination: {innerWindow: 8, outerWindow: 1},
valueNames: ["description", "service", "status", "title", {data: ["id"]}]}; valueNames: ["description", "service", "status", "title", {data: ["id"]}]};