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') .module('bit.accounts')
.controller('accountsHintController', function ($scope, $state, apiService, toastr, $q) { .controller('accountsHintController', function ($scope, $state, apiService, toastr, $q) {
$scope.model = {};
popupUtils.initListSectionItemListeners(); popupUtils.initListSectionItemListeners();
$('#email').focus(); $('#email').focus();

View File

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

View File

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

View File

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

View File

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