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:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user