笔记本数量, contextmenu

This commit is contained in:
life
2015-03-01 23:03:21 +08:00
parent 1f03f3b710
commit e00a35a845
12 changed files with 54 additions and 19 deletions

1
node_modules/note.js generated vendored
View File

@@ -1356,6 +1356,7 @@ var Note = {
},
// 彻底删除笔记时调用
updateTagCount: function(tags) {
var me = this;
if(!tags) {
return;
}

4
node_modules/tag.js generated vendored
View File

@@ -82,9 +82,9 @@ var Tag = {
updateTagCount: function(title, count) {
userId = User.getCurActiveUserId();
// 更新Tag's Count
Tags.update({UserId: userId, Tag: title}, {$set: {Count: cnt}});
Tags.update({UserId: userId, Tag: title}, {$set: {Count: count}});
// 更新web
Web.updateTagCount({Tag: title, Count: cnt});
Web.updateTagCount({Tag: title, Count: count});
},
getTag: function(title, callback) {

2
node_modules/web.js generated vendored
View File

@@ -81,7 +81,7 @@ var Web = {
// TODO test
updateTagCount: function(tag) {
var me = this;
me.Tag.updateTagCount(tag);
// me.Tag.updateTagCount(tag);
},
//