initListSectionItemListeners on pass generator

This commit is contained in:
Kyle Spearrin 2017-11-09 17:20:06 -05:00
parent 9fe4b29a1c
commit 92192b4f6e
1 changed files with 7 additions and 4 deletions

View File

@ -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() {