init form models

This commit is contained in:
Kyle Spearrin 2016-09-22 13:07:06 -04:00
parent eef4d6f48e
commit a57897b0c7
5 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,8 @@
.module('bit.accounts')
.controller('accountsHintController', function ($scope, $state, apiService, toastr, $q) {
$scope.model = {};
popupUtils.initListSectionItemListeners();
$('#email').focus();

View File

@ -2,6 +2,7 @@
.module('bit.accounts')
.controller('accountsLoginTwoFactorController', function ($scope, $state, loginService, toastr) {
$scope.model = {};
popupUtils.initListSectionItemListeners();
$('#code').focus();

View File

@ -2,6 +2,7 @@
.module('bit.accounts')
.controller('accountsRegisterController', function ($scope, $state, cryptoService, toastr, $q, apiService) {
$scope.model = {};
popupUtils.initListSectionItemListeners();
$('#email').focus();

View File

@ -2,6 +2,7 @@ angular
.module('bit.settings')
.controller('settingsAddFolderController', function ($scope, $q, folderService, $state, toastr) {
$scope.folder = {};
popupUtils.initListSectionItemListeners();
$('#name').focus();

View File

@ -2,6 +2,7 @@
.module('bit.settings')
.controller('settingsEditFolderController', function ($scope, $stateParams, folderService, toastr, $q, $state) {
$scope.folder = {};
var folderId = $stateParams.folderId;
folderService.get(folderId, function (folder) {