mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 01:48:40 +00:00
update
This commit is contained in:
parent
11b87fd722
commit
ca6031ee45
|
|
@ -350,7 +350,8 @@ export class Form
|
||||||
? dataOriginElement
|
? dataOriginElement
|
||||||
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-value]'))
|
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-value]'))
|
||||||
);
|
);
|
||||||
texts = texts.concat(
|
|
||||||
|
texts = texts.concat(
|
||||||
dataOriginElement.hasAttribute('data-tpl-text')
|
dataOriginElement.hasAttribute('data-tpl-text')
|
||||||
? dataOriginElement
|
? dataOriginElement
|
||||||
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-text]'))
|
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-text]'))
|
||||||
|
|
@ -484,7 +485,8 @@ export class Form
|
||||||
? dataOriginElement
|
? dataOriginElement
|
||||||
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-value]'))
|
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-value]'))
|
||||||
);
|
);
|
||||||
texts = texts.concat(
|
|
||||||
|
texts = texts.concat(
|
||||||
dataOriginElement.hasAttribute('data-tpl-text')
|
dataOriginElement.hasAttribute('data-tpl-text')
|
||||||
? dataOriginElement
|
? dataOriginElement
|
||||||
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-text]'))
|
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-text]'))
|
||||||
|
|
@ -553,7 +555,8 @@ export class Form
|
||||||
? dataOriginElement
|
? dataOriginElement
|
||||||
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-value]'))
|
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-value]'))
|
||||||
);
|
);
|
||||||
texts = texts.concat(
|
|
||||||
|
texts = texts.concat(
|
||||||
dataOriginElement.hasAttribute('data-tpl-text')
|
dataOriginElement.hasAttribute('data-tpl-text')
|
||||||
? dataOriginElement
|
? dataOriginElement
|
||||||
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-text]'))
|
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-text]'))
|
||||||
|
|
@ -648,7 +651,8 @@ export class Form
|
||||||
? dataOriginElement
|
? dataOriginElement
|
||||||
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-value]'))
|
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-value]'))
|
||||||
);
|
);
|
||||||
texts = texts.concat(
|
|
||||||
|
texts = texts.concat(
|
||||||
dataOriginElement.hasAttribute('data-tpl-text')
|
dataOriginElement.hasAttribute('data-tpl-text')
|
||||||
? dataOriginElement
|
? dataOriginElement
|
||||||
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-text]'))
|
: Array.prototype.slice.call(dataOriginElement.querySelectorAll('[data-tpl-text]'))
|
||||||
|
|
@ -948,8 +952,9 @@ export class Form
|
||||||
Form.insertDataIntoForm(self, 'value', externalFormId, values, remoteUrls);
|
Form.insertDataIntoForm(self, 'value', externalFormId, values, remoteUrls);
|
||||||
|
|
||||||
// This prevents overwriting results from setting data by value in the next step
|
// This prevents overwriting results from setting data by value in the next step
|
||||||
length = texts.length;
|
length = texts.length;
|
||||||
const length2 = values.length;
|
const length2 = values.length;
|
||||||
|
|
||||||
for (let i = 0; i < length; ++i) {
|
for (let i = 0; i < length; ++i) {
|
||||||
const tagName = texts[i].tagName.toLowerCase();
|
const tagName = texts[i].tagName.toLowerCase();
|
||||||
if (tagName === 'select') {
|
if (tagName === 'select') {
|
||||||
|
|
|
||||||
|
|
@ -111,15 +111,15 @@ export class GeneralUI
|
||||||
) {
|
) {
|
||||||
window.open(UriFactory.build(uri), '_blank');
|
window.open(UriFactory.build(uri), '_blank');
|
||||||
} else if (this.getAttribute('data-redirect') !== null) {
|
} else if (this.getAttribute('data-redirect') !== null) {
|
||||||
window.location.href = uri.indexOf('://') > 0
|
window.location.href = UriFactory.build(uri.indexOf('://') > 0
|
||||||
? uri
|
? uri
|
||||||
: jsOMS.rtrim(window.omsApp.request.getRootPath(), '/') + '/' + jsOMS.ltrim(uri, '/');
|
: jsOMS.rtrim(window.omsApp.request.getRootPath(), '/') + '/' + jsOMS.ltrim(uri, '/'));
|
||||||
} else if (uri !== null) {
|
} else if (uri !== null) {
|
||||||
// window.location = UriFactory.build(uri);
|
// window.location = UriFactory.build(uri);
|
||||||
// @todo : consider to implement the line above again. why was it removed?
|
// @todo : consider to implement the line above again. why was it removed?
|
||||||
window.location.href = uri.indexOf('://') > 0
|
window.location.href = UriFactory.build(uri.indexOf('://') > 0
|
||||||
? uri
|
? uri
|
||||||
: jsOMS.rtrim(window.omsApp.request.getRootPath(), '/') + '/' + jsOMS.ltrim(uri, '/');
|
: jsOMS.rtrim(window.omsApp.request.getRootPath(), '/') + '/' + jsOMS.ltrim(uri, '/'));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@todo Commented out until ObserverMutation is implemented
|
@todo Commented out until ObserverMutation is implemented
|
||||||
|
|
@ -148,7 +148,7 @@ export class GeneralUI
|
||||||
// document.open();
|
// document.open();
|
||||||
// document.write(html);
|
// document.write(html);
|
||||||
// document.close();
|
// document.close();
|
||||||
// @todo fix memory leak which most likely exists because of continous binding without removing binds
|
// @todo fix memory leak which most likely exists because of continuous binding without removing binds
|
||||||
window.omsApp.reInit();
|
window.omsApp.reInit();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -174,7 +174,7 @@ export class GeneralUI
|
||||||
// document.open();
|
// document.open();
|
||||||
// document.write(html);
|
// document.write(html);
|
||||||
// document.close();
|
// document.close();
|
||||||
// @todo fix memory leak which most likely exists because of continous binding without removing binds
|
// @todo fix memory leak which most likely exists because of continuous binding without removing binds
|
||||||
window.omsApp.reInit();
|
window.omsApp.reInit();
|
||||||
|
|
||||||
const event = new Event('DOMContentLoaded');
|
const event = new Event('DOMContentLoaded');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user