添加备忘录自动聚焦

This commit is contained in:
luchenqun 2017-05-08 22:27:46 +08:00
parent 453d4dad22
commit 0fc732d1d7
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind
$scope.add = (!$scope.add);
$scope.edit = false;
$scope.content = '';
if ($scope.add) {
$timeout(function() {
$("#noteedit")[0].focus();
});
}
updateEditPos();
}