From f99c8b3b86348d62f70e266687d053afbd408ab8 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Tue, 10 Apr 2018 21:54:12 +0200 Subject: [PATCH] include credentials in ajax-call --- templates/table/colonnade.julius | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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' }