-
+
- 您可以在任意界面按快捷键A(不区分大小写)增加备忘录。双击备忘录可查看详情! +
diff --git a/public/scripts/controllers/note-controller.js b/public/scripts/controllers/note-controller.js index b586b2e..66bd57d 100644 --- a/public/scripts/controllers/note-controller.js +++ b/public/scripts/controllers/note-controller.js @@ -145,6 +145,7 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind } }); toastr.success('备忘删除成功!', "提示"); + $scope.totalItems -= 1; } else { toastr.error('没有找到对应的备忘录,删除失败!请刷新页面再尝试', "提示"); } @@ -202,6 +203,16 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind }); } + $scope.closeNote = function() { + $('.js-note').transition({ + animation: dataService.animation(), + duration: '500ms', + onComplete: function() { + $(".js-note").remove(); + } + }); + } + function getNotes() { $scope.loadBusy = true; var params = { diff --git a/public/views/note.html b/public/views/note.html index e74b8f5..52790de 100644 --- a/public/views/note.html +++ b/public/views/note.html @@ -1,3 +1,14 @@ +
+