添加备忘录自动聚焦
This commit is contained in:
parent
453d4dad22
commit
0fc732d1d7
|
|
@ -66,6 +66,11 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind
|
||||||
$scope.add = (!$scope.add);
|
$scope.add = (!$scope.add);
|
||||||
$scope.edit = false;
|
$scope.edit = false;
|
||||||
$scope.content = '';
|
$scope.content = '';
|
||||||
|
if ($scope.add) {
|
||||||
|
$timeout(function() {
|
||||||
|
$("#noteedit")[0].focus();
|
||||||
|
});
|
||||||
|
}
|
||||||
updateEditPos();
|
updateEditPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue