From d127cae5c65b0ab26463034ed997d0ec1c3a24a7 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 24 Aug 2021 14:44:45 -0600 Subject: [PATCH] Add get_value() to match legacy --- api/js/etemplate/et2_core_inputWidget.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_core_inputWidget.ts b/api/js/etemplate/et2_core_inputWidget.ts index f7cfb041fb..5b52375368 100644 --- a/api/js/etemplate/et2_core_inputWidget.ts +++ b/api/js/etemplate/et2_core_inputWidget.ts @@ -435,6 +435,11 @@ export const Et2InputWidget = (superClass: T) => this.value = new_value; } + get_value() + { + return this.getValue(); + } + getValue() { return typeof this.serializedValue !== "undefined" ? this.serializedValue : this.modalValue; @@ -443,11 +448,11 @@ export const Et2InputWidget = (superClass: T) => isDirty() { let value = this.getValue(); - if (typeof value !== typeof this._oldValue) + if(typeof value !== typeof this._oldValue) { return true; } - if (this._oldValue === value) + if(this._oldValue === value) { return false; }