diff --git a/api/js/etemplate/et2_widget_toolbar.js b/api/js/etemplate/et2_widget_toolbar.js index 9795d6d9f7..a93d168514 100644 --- a/api/js/etemplate/et2_widget_toolbar.js +++ b/api/js/etemplate/et2_widget_toolbar.js @@ -562,16 +562,10 @@ var et2_toolbar = /** @class */ (function (_super) { }; /** * Is dirty returns true if the value of the widget has changed since it - * was loaded. + * was loaded. We don't consider toolbars as dirtyable */ et2_toolbar.prototype.isDirty = function () { - return this.value != null; - }; - /** - * Causes the dirty flag to be reseted. - */ - et2_toolbar.prototype.resetDirty = function () { - this.value = null; + return false; }; /** * Checks the data to see if it is valid, as far as the client side can tell. diff --git a/api/js/etemplate/et2_widget_toolbar.ts b/api/js/etemplate/et2_widget_toolbar.ts index bbbb6c9be5..03995da87d 100644 --- a/api/js/etemplate/et2_widget_toolbar.ts +++ b/api/js/etemplate/et2_widget_toolbar.ts @@ -691,20 +691,13 @@ class et2_toolbar extends et2_DOMWidget implements et2_IInput /** * Is dirty returns true if the value of the widget has changed since it - * was loaded. + * was loaded. We don't consider toolbars as dirtyable */ isDirty() { - return this.value != null; + 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.