diff --git a/src/matrix-get-event.html b/src/matrix-get-event.html index e958e14..96d0c3a 100644 --- a/src/matrix-get-event.html +++ b/src/matrix-get-event.html @@ -19,14 +19,18 @@ }, oneditprepare: function() { $("#node-input-roomId").typedInput({ - type: this.roomIdType, - types:['msg','flow','global','str'], - }).typedInput('value', this.roomIdValue); + types: ['msg','flow','global','str'], + typeField: "#node-input-roomId" + }); + $("#node-input-roomId").typedInput("type", this.roomIdType || "msg"); + $("#node-input-roomId").typedInput("value", this.roomIdValue || "topic"); $("#node-input-eventId").typedInput({ - type: this.eventIdType, - types:['msg','flow','global','str'], - }).typedInput('value', this.eventIdValue); + types: ['msg','flow','global','str'], + typeField: "#node-input-eventId" + }); + $("#node-input-eventId").typedInput("type", this.eventIdType || "msg"); + $("#node-input-eventId").typedInput("value", this.eventIdValue || "eventId"); }, oneditsave: function() { this.roomIdType = $("#node-input-roomId").typedInput('type'); @@ -58,18 +62,6 @@ - -