diff --git a/public/js/app/note.js b/public/js/app/note.js index fdf4d5a9..a5a1313f 100644 --- a/public/js/app/note.js +++ b/public/js/app/note.js @@ -40,11 +40,11 @@ Note.switchView = function(view) { Note.switchView(Config.view || 'snippet'); Note.getItemTpl = function() { - return Note.itemTpl; + return Note.itemTpl; } Note.getItemTplNoImg = function() { - return Note.itemTplNoImg; + return Note.itemTplNoImg; } // 定时保存信息 @@ -3226,7 +3226,7 @@ $(function() { var themeSubmenus = new gui.Menu(); themeSubmenus.append(new gui.MenuItem({ checked: Config.view === "snippet", - label: "摘要视图", + label: Api.getMsg("snippetView"), type: "checkbox", click: function() { Note.switchView('snippet'); @@ -3234,7 +3234,7 @@ $(function() { })); themeSubmenus.append(new gui.MenuItem({ checked: Config.view === "list", - label: "列表视图", + label: Api.getMsg("listView"), type: "checkbox", click: function() { Note.switchView('list'); diff --git a/public/js/app/page.js b/public/js/app/page.js index 3f21c506..fa0c007d 100644 --- a/public/js/app/page.js +++ b/public/js/app/page.js @@ -1977,19 +1977,17 @@ function setMacTopMenu() { type: 'separator' }, { - label: 'Summary View', + label: Api.getMsg('snippetView'), + type: "checkbox", click: function() { - Config.view = 'summary'; - Notebook.renderCurNotebook(); - Api.writeConfig(Config); + Note.switchView('snippet'); }, }, { - label: 'List View', + label: Api.getMsg('listView'), + type: "checkbox", click: function() { - Config.view = 'list'; - Notebook.renderCurNotebook(); - Api.writeConfig(Config); + Note.switchView('list'); }, }, ] diff --git a/public/langs/en-us.js b/public/langs/en-us.js index 1ae85873..1b53040f 100644 --- a/public/langs/en-us.js +++ b/public/langs/en-us.js @@ -87,6 +87,7 @@ "leanoteBlog": "Blog", "leftHidden": "Hidden slide bar", "leftShow": "Show slide bar", + "listView": "List view", "login": "Sign in", "loginSuccess": "login success", "logining": "Sign in", @@ -145,6 +146,7 @@ "shareInfo": "Share your knowledge to your friends in leanote.", "shareToFriends": "Share to friends", "simple": "Simple", + "snippetView": "Snippet view", "submit": "submit", "suggestions": "Suggestions", "suggestionsInfo": "help us to improve our service.", @@ -189,4 +191,4 @@ "localAccountTips": "Please note that your account is local account which is not the Leanote's account, and your data just save onto your local disk. Once your disk is broken, the data cannot be recovered. So we recommend you to use Leanote Desktop App with Leanote account, and your data will sync to Leanote server.

Leanote Desktop App has disabled the feature that create a local account. You can login Leanote Desktop App with local account whitch created before. But we recommend you to use Leanote Desktop App with Leanote account.

", "ForceFullSyncMsg": "Full sync will remove the current account's all local data (includes database, images and attachments) and load all data from server, are you sure ?" -} \ No newline at end of file +} diff --git a/public/langs/zh-cn.js b/public/langs/zh-cn.js index 2373260f..c88f5c4c 100644 --- a/public/langs/zh-cn.js +++ b/public/langs/zh-cn.js @@ -84,6 +84,7 @@ "leanoteBlog": "官方博客", "leftHidden": "隐藏左侧", "leftShow": "展开左侧", + "listView": "列表视图", "login": "登录", "loginSuccess": "登录成功, 正在跳转", "logining": "正在登录", @@ -140,6 +141,7 @@ "shareInfo": "你也可以将知识分享给你的好友.", "shareToFriends": "分享给好友", "simple": "简约", + "snippetView": "摘要视图", "submit": "提交", "suggestions": "建议", "suggestionsInfo": "帮助我们完善leanote", @@ -311,4 +313,4 @@ "Don't Show Anymore": "不再提示", "ctrl/cmd+e Toggle Modify with Readonly": "ctrl/cmd+e 切换编辑与只读" -} \ No newline at end of file +}