Etemplate: Fix password widget did not disable suggest dynamically

This commit is contained in:
nathangray 2020-07-30 09:21:40 -10:00
parent 8a14301710
commit 80b72bfb3c
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}
};
/**

View File

@ -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();
}
}