initListSectionItemListeners on pass generator
This commit is contained in:
parent
9fe4b29a1c
commit
92192b4f6e
|
@ -11,12 +11,10 @@ export class PasswordGeneratorController {
|
|||
i18n: any;
|
||||
|
||||
constructor(private $state: any, private passwordGenerationService: any,
|
||||
private toastr: any, utilsService: any, private $analytics: any,
|
||||
private i18nService: any) {
|
||||
private toastr: any, private utilsService: any, private $analytics: any,
|
||||
private i18nService: any, private $timeout: any) {
|
||||
this.i18n = i18nService;
|
||||
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
|
||||
passwordGenerationService.getOptions().then((options: any) => {
|
||||
this.options = options;
|
||||
this.regenerate(false);
|
||||
|
@ -40,6 +38,11 @@ export class PasswordGeneratorController {
|
|||
this.editState = params.editState;
|
||||
|
||||
this.showSelect = this.addState || this.editState;
|
||||
|
||||
const self = this;
|
||||
this.$timeout(() => {
|
||||
self.utilsService.initListSectionItemListeners(document, angular);
|
||||
}, 500);
|
||||
}
|
||||
|
||||
sliderMoved() {
|
||||
|
|
Loading…
Reference in New Issue