diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-16 20:01:23 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-16 20:01:23 +0100 |
| commit | 76f36c6c5dafe754b066903b1ee8ecdd1b92dcab (patch) | |
| tree | 374deb919344611e642c83926dd36a12f31f709a /client/tables.js | |
| parent | 6431d06048791763f3644b3a0457cc9c4f1df6d3 (diff) | |
faceSearch client
Diffstat (limited to 'client/tables.js')
| -rw-r--r-- | client/tables.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/tables.js b/client/tables.js index a30abc32..b2b3d39c 100644 --- a/client/tables.js +++ b/client/tables.js @@ -57,6 +57,7 @@ export default function append(el, payload) { const citations = getCitations(data) console.log(citations) table.setData(citations) + el.classList.add('loaded') } else { fetch(payload.url, { mode: 'cors' }) .then(r => r.text()) @@ -65,6 +66,7 @@ export default function append(el, payload) { const data = csv.toJSON(text, { headers: { included: true } }) // console.log(data) table.setData(data) + el.classList.add('loaded') } catch (e) { console.error("error parsing json:", payload.url) console.error(e) |
