download attach

This commit is contained in:
lealife committed 2015-10-12 21:03:51 +08:00
1 parent ec68570a38
commit 04d641a5ad
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1612,11 +1612,11 @@ var Attach = {
self.attachListO.on("click", ".download-attach", function(e) {
e.stopPropagation();
var attachId = $(this).closest('li').data("id");
Note.download(UrlPrefix + "/attach/download", {attachId:attachId});
Note.download("/attach/download", {attachId:attachId});
});
// 下载全部
self.downloadAllBtnO.click(function() {
Note.download(UrlPrefix + "/attach/downloadAll", {noteId: Note.curNoteId});
Note.download("/attach/downloadAll", {noteId: Note.curNoteId});
});
// make link