mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-21 21:11:35 +01:00
pass angular to initListSectionItemListeners util
This commit is contained in:
parent
7cc2961b23
commit
0b8ff4499f
@ -5,7 +5,7 @@
|
||||
$analytics) {
|
||||
$scope.model = {};
|
||||
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
$('#email').focus();
|
||||
|
||||
$scope.submitPromise = null;
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
.controller('accountsLoginController', function ($scope, $state, $stateParams, loginService, userService, toastr,
|
||||
utilsService, $analytics) {
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
|
||||
if ($stateParams.email) {
|
||||
$('#master-password').focus();
|
||||
|
@ -4,7 +4,7 @@
|
||||
.controller('accountsLoginTwoFactorController', function ($scope, $state, loginService, toastr, utilsService,
|
||||
$analytics) {
|
||||
$scope.model = {};
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
$('#code').focus();
|
||||
|
||||
$scope.loginPromise = null;
|
||||
|
@ -4,7 +4,7 @@
|
||||
.controller('accountsRegisterController', function ($scope, $state, cryptoService, toastr, $q, apiService, utilsService,
|
||||
$analytics) {
|
||||
$scope.model = {};
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
$('#email').focus();
|
||||
|
||||
$scope.submitPromise = null;
|
||||
|
@ -4,7 +4,7 @@ angular
|
||||
.controller('settingsAddFolderController', function ($scope, $q, folderService, $state, toastr, utilsService,
|
||||
$analytics) {
|
||||
$scope.folder = {};
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
$('#name').focus();
|
||||
|
||||
$scope.savePromise = null;
|
||||
|
@ -12,7 +12,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
|
||||
$scope.savePromise = null;
|
||||
$scope.save = function (model) {
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
$scope.showSelect = $stateParams.addState || $stateParams.editState;
|
||||
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
$scope.password = '-';
|
||||
|
||||
$scope.slider = {
|
||||
|
@ -23,7 +23,7 @@
|
||||
else {
|
||||
$('#name').focus();
|
||||
}
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
|
||||
$q.when(folderService.getAllDecrypted()).then(function (folders) {
|
||||
$scope.folders = folders;
|
||||
|
@ -27,7 +27,7 @@ angular
|
||||
$scope.folders = folders;
|
||||
});
|
||||
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
|
||||
$scope.savePromise = null;
|
||||
$scope.save = function (model) {
|
||||
|
@ -42,7 +42,7 @@ function initUtilsService() {
|
||||
return this.getBrowser() === 'opera';
|
||||
}
|
||||
|
||||
UtilsService.prototype.initListSectionItemListeners = function (doc) {
|
||||
UtilsService.prototype.initListSectionItemListeners = function (doc, angular) {
|
||||
if (!doc) {
|
||||
throw 'doc parameter required';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user