mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-17 08:38:18 +00:00
批量导出html成功, 待添加到notebook上
This commit is contained in:
@@ -117,18 +117,26 @@ define(function() {
|
||||
var menu = {
|
||||
label: Api.getMsg('plugin.export_pdf.export'),
|
||||
enabled: function(noteIds) {
|
||||
if(UserInfo.IsLocal) {
|
||||
return false;
|
||||
}
|
||||
if (noteIds && noteIds.length == 1) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
click: (function() {
|
||||
return function(note) {
|
||||
return function(noteIds) {
|
||||
if (UserInfo.IsLocal) {
|
||||
Notify.show({type: 'warning', title: 'Warning', body: getMsg('plugin.export_pdf.localUser')});
|
||||
return;
|
||||
}
|
||||
me.exportPDF(note);
|
||||
if (!noteIds || noteIds.length > 1) {
|
||||
return;
|
||||
}
|
||||
Api.noteService.getNote(noteIds[0], function(note) {
|
||||
me.exportPDF(note);
|
||||
});
|
||||
}
|
||||
})()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user