mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
re-enable loading full form, i removed it by accident
This commit is contained in:
parent
3a2cabb1ca
commit
eb722e5e17
|
|
@ -218,8 +218,26 @@ export class UriFactory
|
||||||
return value;
|
return value;
|
||||||
} else if (match.indexOf('?') === 0) {
|
} else if (match.indexOf('?') === 0) {
|
||||||
return HttpUri.getUriQueryParameter(current.query, match.substr(1));
|
return HttpUri.getUriQueryParameter(current.query, match.substr(1));
|
||||||
} else if (match.indexOf('#') === 0) {
|
} else if (match === '#') {
|
||||||
return current.fragment;
|
return current.fragment;
|
||||||
|
} else if (match.indexOf('#') === 0) {
|
||||||
|
const e = document.getElementById(match.substr(1));
|
||||||
|
if (e) {
|
||||||
|
if (e.tagName.toLowerCase() !== 'form') {
|
||||||
|
return e.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
let value = '';
|
||||||
|
const form = (new FormView(e.id)).getData();
|
||||||
|
|
||||||
|
for (let pair of form.entries()) {
|
||||||
|
value += '&' + pair[0] + '=' + pair[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return '';
|
||||||
} else if (match.indexOf('?') === 0) {
|
} else if (match.indexOf('?') === 0) {
|
||||||
return current.query();
|
return current.query();
|
||||||
} else if (match.indexOf('/') === 0) {
|
} else if (match.indexOf('/') === 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user