1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

pass angular to initListSectionItemListeners util

This commit is contained in:
Kyle Spearrin
2016-09-29 17:57:56 -04:00
parent 7cc2961b23
commit 0b8ff4499f
10 changed files with 10 additions and 10 deletions

View File

@@ -5,7 +5,7 @@
$analytics) { $analytics) {
$scope.model = {}; $scope.model = {};
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
$('#email').focus(); $('#email').focus();
$scope.submitPromise = null; $scope.submitPromise = null;

View File

@@ -3,7 +3,7 @@
.controller('accountsLoginController', function ($scope, $state, $stateParams, loginService, userService, toastr, .controller('accountsLoginController', function ($scope, $state, $stateParams, loginService, userService, toastr,
utilsService, $analytics) { utilsService, $analytics) {
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
if ($stateParams.email) { if ($stateParams.email) {
$('#master-password').focus(); $('#master-password').focus();

View File

@@ -4,7 +4,7 @@
.controller('accountsLoginTwoFactorController', function ($scope, $state, loginService, toastr, utilsService, .controller('accountsLoginTwoFactorController', function ($scope, $state, loginService, toastr, utilsService,
$analytics) { $analytics) {
$scope.model = {}; $scope.model = {};
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
$('#code').focus(); $('#code').focus();
$scope.loginPromise = null; $scope.loginPromise = null;

View File

@@ -4,7 +4,7 @@
.controller('accountsRegisterController', function ($scope, $state, cryptoService, toastr, $q, apiService, utilsService, .controller('accountsRegisterController', function ($scope, $state, cryptoService, toastr, $q, apiService, utilsService,
$analytics) { $analytics) {
$scope.model = {}; $scope.model = {};
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
$('#email').focus(); $('#email').focus();
$scope.submitPromise = null; $scope.submitPromise = null;

View File

@@ -4,7 +4,7 @@ angular
.controller('settingsAddFolderController', function ($scope, $q, folderService, $state, toastr, utilsService, .controller('settingsAddFolderController', function ($scope, $q, folderService, $state, toastr, utilsService,
$analytics) { $analytics) {
$scope.folder = {}; $scope.folder = {};
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
$('#name').focus(); $('#name').focus();
$scope.savePromise = null; $scope.savePromise = null;

View File

@@ -12,7 +12,7 @@
}); });
}); });
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
$scope.savePromise = null; $scope.savePromise = null;
$scope.save = function (model) { $scope.save = function (model) {

View File

@@ -8,7 +8,7 @@
$scope.showSelect = $stateParams.addState || $stateParams.editState; $scope.showSelect = $stateParams.addState || $stateParams.editState;
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
$scope.password = '-'; $scope.password = '-';
$scope.slider = { $scope.slider = {

View File

@@ -23,7 +23,7 @@
else { else {
$('#name').focus(); $('#name').focus();
} }
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
$q.when(folderService.getAllDecrypted()).then(function (folders) { $q.when(folderService.getAllDecrypted()).then(function (folders) {
$scope.folders = folders; $scope.folders = folders;

View File

@@ -27,7 +27,7 @@ angular
$scope.folders = folders; $scope.folders = folders;
}); });
utilsService.initListSectionItemListeners($(document)); utilsService.initListSectionItemListeners($(document), angular);
$scope.savePromise = null; $scope.savePromise = null;
$scope.save = function (model) { $scope.save = function (model) {

View File

@@ -42,7 +42,7 @@ function initUtilsService() {
return this.getBrowser() === 'opera'; return this.getBrowser() === 'opera';
} }
UtilsService.prototype.initListSectionItemListeners = function (doc) { UtilsService.prototype.initListSectionItemListeners = function (doc, angular) {
if (!doc) { if (!doc) {
throw 'doc parameter required'; throw 'doc parameter required';
} }