mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-22 11:54:04 +00:00
import leanote
This commit is contained in:
@@ -1154,14 +1154,18 @@ Notebook.init = function() {
|
|||||||
if(importMenus && importMenus.length) {
|
if(importMenus && importMenus.length) {
|
||||||
var importSubmenus = new gui.Menu();
|
var importSubmenus = new gui.Menu();
|
||||||
for(var i = 0; i < importMenus.length; ++i) {
|
for(var i = 0; i < importMenus.length; ++i) {
|
||||||
var clickCallback = importMenus[i].click;
|
|
||||||
if(clickCallback) {
|
(function(j) {
|
||||||
importMenus[i].click = function() {
|
var clickCallback = importMenus[j].click;
|
||||||
var notebookId = $(me.target).attr("notebookId");
|
if(clickCallback) {
|
||||||
var notebook = Notebook.getNotebook(notebookId);
|
importMenus[i].click = function() {
|
||||||
clickCallback(notebook);
|
var notebookId = $(me.target).attr("notebookId");
|
||||||
|
var notebook = Notebook.getNotebook(notebookId);
|
||||||
|
clickCallback(notebook);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})(i);
|
||||||
|
|
||||||
importSubmenus.append(new gui.MenuItem(importMenus[i]));
|
importSubmenus.append(new gui.MenuItem(importMenus[i]));
|
||||||
}
|
}
|
||||||
this.imports = new gui.MenuItem({
|
this.imports = new gui.MenuItem({
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"author": "life",
|
|
||||||
"authorUrl": "http://life.leanote.com",
|
|
||||||
"desc": "导入evernote",
|
|
||||||
"langs": {
|
|
||||||
"en-us": {
|
|
||||||
"name": "Import Evernote",
|
|
||||||
},
|
|
||||||
"zh-cn": {
|
|
||||||
"name": "导入Evernote"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -52,7 +52,7 @@ define(function() {
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
<h4 class="modal-title" class="modalTitle"><span class="lang">Import to</span> <span id="importDialogNotebook"></span></h4>
|
<h4 class="modal-title" class="modalTitle"><span class="lang">Import to</span> <span id="importDialogNotebookLeanote"></span></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body" id="">
|
<div class="modal-body" id="">
|
||||||
<div role="tabpanel">
|
<div role="tabpanel">
|
||||||
@@ -183,7 +183,7 @@ define(function() {
|
|||||||
}
|
}
|
||||||
me.clear();
|
me.clear();
|
||||||
|
|
||||||
$('#importDialogNotebook').html(notebook.Title);
|
$('#importDialogNotebookLeanote').html(notebook.Title);
|
||||||
|
|
||||||
me._curNotebook = notebook;
|
me._curNotebook = notebook;
|
||||||
var notebookId = notebook.NotebookId;
|
var notebookId = notebook.NotebookId;
|
||||||
|
|||||||
Reference in New Issue
Block a user