批量导出html成功, 待添加到notebook上

This commit is contained in:
life
2015-10-24 15:30:46 +08:00
parent 51174399d2
commit 5f2ad33ffa
8 changed files with 167 additions and 36 deletions

View File

@@ -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);
});
}
})()
};