This commit is contained in:
LucasYuNju
2016-12-28 17:31:50 +08:00
parent 612d77c454
commit 492603273f
4 changed files with 16 additions and 14 deletions

View File

@@ -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');

View File

@@ -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');
},
},
]

View File

@@ -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.",

View File

@@ -84,6 +84,7 @@
"leanoteBlog": "官方博客",
"leftHidden": "隐藏左侧",
"leftShow": "展开左侧",
"listView": "列表视图",
"login": "登录",
"loginSuccess": "登录成功, 正在跳转",
"logining": "正在登录",
@@ -140,6 +141,7 @@
"shareInfo": "你也可以将知识分享给你的好友.",
"shareToFriends": "分享给好友",
"simple": "简约",
"snippetView": "摘要视图",
"submit": "提交",
"suggestions": "建议",
"suggestionsInfo": "帮助我们完善leanote",