diff --git a/templates/table/colonnade.julius b/templates/table/colonnade.julius index 840cccd6a..fcea7dea9 100644 --- a/templates/table/colonnade.julius +++ b/templates/table/colonnade.julius @@ -23,8 +23,8 @@ event.preventDefault(); var url = new URL(window.location.origin + window.location.pathname + this.getAttribute('href')); var order = this.parentNode.dataset.order || ASC; - // TODO: not working here... getting whole page as response... - url.searchParams.set('table-only', 'true'); + // TODO: make use of dbtIdent instead of -terms- + url.searchParams.set('terms-table-only', 'true'); updateTableFrom(url); markSorted(this.parentNode, order); } @@ -40,6 +40,7 @@ // fetches new sorted table from url with params and replaces contents of current table function updateTableFrom(url) { fetch(url, { + credentials: 'same-origin', headers: { 'Accept': 'text/html' }