Merge branch 'master' of gitlab.cip.ifi.lmu.de:jost/UniWorX

This commit is contained in:
Gregor Kleen 2019-03-26 23:10:05 +01:00
commit bca35ff6b6
2 changed files with 11 additions and 3 deletions

View File

@ -124,7 +124,10 @@
function clickHandler(event, tableOptions) {
event.preventDefault();
var url = new URL(window.location.origin + window.location.pathname + getClickDestination(this));
var url = getClickDestination(this);
if (!url.match(/^http/)) {
url = new URL(window.location.origin + window.location.pathname + getClickDestination(this));
}
updateTableFrom(url, tableOptions);
}

View File

@ -31,10 +31,15 @@
if (formElement.matches('.' + JS_INITIALIZED_CLASS)) {
return false;
}
var formIdElement = formElement.querySelector('[name="form-identifier"]');
if (!formIdElement) {
return;
}
options = options || {};
var tableIdent = options.dbtIdent;
var formId = formElement.querySelector('[name="form-identifier"]').value;
var formId = formIdElement.value;
var inputs = {
search: [],
input: [],