mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:53:08 +02:00
Merge pull request #7008 from ericrius1/editPropsDecimals
Fixed bug where lack of 0 as prefix for numbers would throw an error
This commit is contained in:
commit
43844dd0be
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
||||||
function createEmitNumberPropertyUpdateFunction(propertyName) {
|
function createEmitNumberPropertyUpdateFunction(propertyName) {
|
||||||
return function() {
|
return function() {
|
||||||
EventBridge.emitWebEvent(
|
EventBridge.emitWebEvent(
|
||||||
'{ "type":"update", "properties":{"' + propertyName + '":' + this.value + '}}'
|
'{ "type":"update", "properties":{"' + propertyName + '":' + parseFloat(this.value).toFixed(2) + '}}'
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue