diff --git a/api/js/etemplate/et2_widget_password.js b/api/js/etemplate/et2_widget_password.js index 3700ce8019..ac541259f7 100644 --- a/api/js/etemplate/et2_widget_password.js +++ b/api/js/etemplate/et2_widget_password.js @@ -154,10 +154,10 @@ var et2_password = /** @class */ (function (_super) { this.suggest_button = et2_core_widget_1.et2_createWidget("button", attrs, this); } if (length) { - jQuery('.suggest', this.wrapper).show(); + jQuery('.generate_password', this.wrapper).show(); } else { - jQuery('.suggest', this.wrapper).hide(); + jQuery('.generate_password', this.wrapper).hide(); } }; /** diff --git a/api/js/etemplate/et2_widget_password.ts b/api/js/etemplate/et2_widget_password.ts index 498096de3d..7557a987a9 100644 --- a/api/js/etemplate/et2_widget_password.ts +++ b/api/js/etemplate/et2_widget_password.ts @@ -202,11 +202,11 @@ export class et2_password extends et2_textbox } if(length) { - jQuery('.suggest', this.wrapper).show(); + jQuery('.generate_password', this.wrapper).show(); } else { - jQuery('.suggest', this.wrapper).hide(); + jQuery('.generate_password', this.wrapper).hide(); } }