From c9f5488a241c7239d6ab971309a5c0795ebe47aa Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Tue, 28 Jan 2020 16:42:15 +0100
Subject: [PATCH] use empty template for JobList and CorpusList. performance++
---
app/static/js/CorpusList.js | 6 +-----
app/static/js/JobList.js | 7 +------
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/app/static/js/CorpusList.js b/app/static/js/CorpusList.js
index eae12786..f76cee96 100644
--- a/app/static/js/CorpusList.js
+++ b/app/static/js/CorpusList.js
@@ -112,11 +112,7 @@ class CorpusList extends List {
function(items) {items[0].elm = rowElement;});
}
}
-CorpusList.DEFAULT_OPTIONS = {item: `
-
-
|
-
- `,
+CorpusList.DEFAULT_OPTIONS = {item: "",
page: 4,
pagination: {innerWindow: 8, outerWindow: 1},
valueNames: ["description", "title", {data: ["id"]}]};
diff --git a/app/static/js/JobList.js b/app/static/js/JobList.js
index 4b8b7ddc..31977308 100644
--- a/app/static/js/JobList.js
+++ b/app/static/js/JobList.js
@@ -113,12 +113,7 @@ class JobList extends List {
function(items) {items[0].elm = rowElement;});
}
}
-JobList.DEFAULT_OPTIONS = {item: `
- |
- |
- |
- |
-
`,
+JobList.DEFAULT_OPTIONS = {item: "",
page: 4,
pagination: {innerWindow: 8, outerWindow: 1},
valueNames: ["description", "service", "status", "title", {data: ["id"]}]};