mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 15:41:19 +00:00
笔记本数量, contextmenu
This commit is contained in:
1
node_modules/note.js
generated
vendored
1
node_modules/note.js
generated
vendored
@@ -1356,6 +1356,7 @@ var Note = {
|
||||
},
|
||||
// 彻底删除笔记时调用
|
||||
updateTagCount: function(tags) {
|
||||
var me = this;
|
||||
if(!tags) {
|
||||
return;
|
||||
}
|
||||
|
4
node_modules/tag.js
generated
vendored
4
node_modules/tag.js
generated
vendored
@@ -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
2
node_modules/web.js
generated
vendored
@@ -81,7 +81,7 @@ var Web = {
|
||||
// TODO test
|
||||
updateTagCount: function(tag) {
|
||||
var me = this;
|
||||
me.Tag.updateTagCount(tag);
|
||||
// me.Tag.updateTagCount(tag);
|
||||
},
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user