From aeb576b9704715a8f3397e7ccc1431de61f64f5a Mon Sep 17 00:00:00 2001 From: luchenqun Date: Tue, 7 Mar 2017 11:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/scripts/controllers/edit-controller.js | 36 +++++++++---------- public/scripts/controllers/tags-controller.js | 4 +-- public/views/home.html | 2 +- public/views/settings.html | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/public/scripts/controllers/edit-controller.js b/public/scripts/controllers/edit-controller.js index 1c623eb..dad8f1c 100644 --- a/public/scripts/controllers/edit-controller.js +++ b/public/scripts/controllers/edit-controller.js @@ -198,24 +198,24 @@ app.controller('editCtr', ['$scope', '$state', '$timeout', '$document', 'bookmar $scope.newTags = bookmark.tags.map((item) => item.name).toString(); }); - - $document.bind("keypress", function(event) { - $scope.$apply(function() { - console.log(event.keyCode); - var menusScope = $('div[ng-controller="menuCtr"]').scope(); - // a按键 - if (event.keyCode == 97 && menusScope.login) { - $('.ui.modal.js-add-bookmark').modal({ - closable: false, - }).modal('setting', 'transition', transition()).modal('show'); - $('.ui.modal.js-add-bookmark .ui.dropdown').dropdown('clear'); - $('.ui.modal.js-add-bookmark .ui.dropdown').addClass('loading'); - $('.ui.checkbox.js-public').checkbox('set checked'); - init(); - getTags({}); - } - }) - }); + // 在输入文字的时候也会触发,暂删掉 + // $document.bind("keypress", function(event) { + // $scope.$apply(function() { + // console.log(event.keyCode); + // var menusScope = $('div[ng-controller="menuCtr"]').scope(); + // // a按键 + // if (event.keyCode == 97 && menusScope.login) { + // $('.ui.modal.js-add-bookmark').modal({ + // closable: false, + // }).modal('setting', 'transition', transition()).modal('show'); + // $('.ui.modal.js-add-bookmark .ui.dropdown').dropdown('clear'); + // $('.ui.modal.js-add-bookmark .ui.dropdown').addClass('loading'); + // $('.ui.checkbox.js-public').checkbox('set checked'); + // init(); + // getTags({}); + // } + // }) + // }); function getTags(params) { bookmarkService.getTags(params) diff --git a/public/scripts/controllers/tags-controller.js b/public/scripts/controllers/tags-controller.js index a188395..66cd7b0 100644 --- a/public/scripts/controllers/tags-controller.js +++ b/public/scripts/controllers/tags-controller.js @@ -250,7 +250,7 @@ app.controller('tagsCtr', ['$scope', '$filter', '$window', '$stateParams', '$tim $scope.confirmDelTag = function(tagId, tagName) { ngDialog.close(dialog); var params = { - del: (tagName == '未分类' || tag.name == "收藏") ? false : true, + del: (tagName == '未分类' || tagName == "收藏") ? false : true, id: tagId, } bookmarkService.delTag(params) @@ -263,7 +263,7 @@ app.controller('tagsCtr', ['$scope', '$filter', '$window', '$stateParams', '$tim index = i; } }) - if (index !== -1) { + if (index !== -1 && tagName != '未分类' && tagName != "收藏") { $("#tag" + tagId).transition({ animation: animation(), duration: 500, diff --git a/public/views/home.html b/public/views/home.html index a85643b..53aea09 100644 --- a/public/views/home.html +++ b/public/views/home.html @@ -15,7 +15,7 @@

2、网站展示有三种展示方式:导航,列表,卡片。其中导航以分类展示,分类顺序可以在书签分类下面拖动编辑。按照点击的次数从高到低在每个分类里面提取16个书签,再按照最近添加的书签提取前面的16个书签,然后合并起来。列表以表格展示,显示书签详细类容,按照点击次数优先显示,点击次数相同,则按添加顺序优先。卡片以卡片方式显示,按照最近添加优先显示。(完成)

3、在书签分类里面,可以更新分类,删除分类,新增分类,对分类显示进行排序。分类的标签默认按照添加日期展示,但是可以点击表格的标题,按照点击次数,添加日期,最后点击从大到小进行排序。(完成)

4、可以按照指定添加时间段,指定分类目录,指定网址关键字等进行查询。(完成)

-

5、添加书签的时候,会自动获取title,供用户编辑。在书签任意界面按键盘上a键可快速添加!(完成)

+

5、添加书签的时候,会自动获取title,供用户编辑。(完成)

6、可以导入Chrome的书签导出文件,暂时做在设置里面。(完成)

7、书签可以作为公有或者私有,公有可供所有人搜索。(暂时可以通过用户名进行搜索,待优化)

8、可以将搜索到其他用户的书签转存为自己的书签。(已完成)

diff --git a/public/views/settings.html b/public/views/settings.html index 2daccc0..3c1b48c 100644 --- a/public/views/settings.html +++ b/public/views/settings.html @@ -109,7 +109,7 @@

2、网站展示有三种展示方式:导航,列表,卡片。其中导航以分类展示,分类顺序可以在书签分类下面拖动编辑。按照点击的次数从高到低在每个分类里面提取16个书签,再按照最近添加的书签提取前面的16个书签,然后合并起来。列表以表格展示,显示书签详细类容,按照点击次数优先显示,点击次数相同,则按添加顺序优先。卡片以卡片方式显示,按照最近添加优先显示。(完成)

3、在书签分类里面,可以更新分类,删除分类,新增分类,对分类显示进行排序。分类的标签默认按照添加日期展示,但是可以点击表格的标题,按照点击次数,添加日期,最后点击从大到小进行排序。(完成)

4、可以按照指定添加时间段,指定分类目录,指定网址关键字等进行查询。(完成)

-

5、添加书签的时候,会自动获取title,供用户编辑。在书签任意界面按键盘上a键可快速添加!(完成)

+

5、添加书签的时候,会自动获取title,供用户编辑。(完成)

6、可以导入Chrome的书签导出文件,暂时做在设置里面。(完成)

7、书签可以作为公有或者私有,公有可供所有人搜索。(暂时可以通过用户名进行搜索,待优化)

8、可以将搜索到其他用户的书签转存为自己的书签。(已完成)