shx-3d-render
parent
ebf22d55e5
commit
d4e5a72f26
|
@ -153,7 +153,16 @@
|
|||
// request data from server
|
||||
let tJS = this.tJS;
|
||||
|
||||
console.log("msg sent");
|
||||
// update globalInputFormsObjValues from input fields
|
||||
for(let key in globalInputFormsObj) {
|
||||
if(key === this.currentVariant) {
|
||||
let inputs = this.content.querySelectorAll('input');
|
||||
for(let i = 0; i < inputs.length; i++) {
|
||||
globalInputFormsObjValues[key][inputs[i].name] = inputs[i].value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.Viewer3D.contentWindow.postMessage(JSON.stringify({"changeView":{"currentVariant": this.currentVariant, values: globalInputFormsObjValues[this.currentVariant]}}), "*");
|
||||
|
||||
|
|
Loading…
Reference in New Issue