From e80c118aa84f60947fcad2f17d813c54c004454a Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 2 Jul 2020 11:19:11 -0600 Subject: [PATCH] Etemplate: Replace resetDirty(), it's needed for IInput interface --- api/js/etemplate/et2_widget_toolbar.js | 6 ++++++ api/js/etemplate/et2_widget_toolbar.ts | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/api/js/etemplate/et2_widget_toolbar.js b/api/js/etemplate/et2_widget_toolbar.js index a93d168514..d184433e58 100644 --- a/api/js/etemplate/et2_widget_toolbar.js +++ b/api/js/etemplate/et2_widget_toolbar.js @@ -567,6 +567,12 @@ var et2_toolbar = /** @class */ (function (_super) { et2_toolbar.prototype.isDirty = function () { return false; }; + /** + * Causes the dirty flag to be reseted. + */ + et2_toolbar.prototype.resetDirty = function () { + this.value = null; + }; /** * Checks the data to see if it is valid, as far as the client side can tell. * Return true if it's not possible to tell on the client side, because the server diff --git a/api/js/etemplate/et2_widget_toolbar.ts b/api/js/etemplate/et2_widget_toolbar.ts index 03995da87d..46a12e9bb9 100644 --- a/api/js/etemplate/et2_widget_toolbar.ts +++ b/api/js/etemplate/et2_widget_toolbar.ts @@ -698,6 +698,13 @@ class et2_toolbar extends et2_DOMWidget implements et2_IInput return false; } + /** + * Causes the dirty flag to be reseted. + */ + resetDirty() + { + this.value = null; + } /** * Checks the data to see if it is valid, as far as the client side can tell.