mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 00:40:12 +01:00
Merge branch 'thuanpq-auto-setting-card-cover-with-drag-drop' into devel
This commit is contained in:
commit
9e3e63f494
2 changed files with 9 additions and 3 deletions
|
|
@ -2,9 +2,10 @@
|
||||||
|
|
||||||
This release adds the following new features:
|
This release adds the following new features:
|
||||||
|
|
||||||
* Update to Node 4.8.7
|
* [Auto update card cover with new image uploaded via drag&drop](https://github.com/wekan/wekan/pull/1401);
|
||||||
|
* Update to Node 4.8.7.
|
||||||
|
|
||||||
Thanks to GitHub user xet7 for contributions.
|
Thanks to GitHub users thuanpq and xet7 for their contributions.
|
||||||
|
|
||||||
# v0.62 2017-12-12 Wekan release
|
# v0.62 2017-12-12 Wekan release
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,12 @@ Template.previewClipboardImagePopup.events({
|
||||||
file.boardId = card.boardId;
|
file.boardId = card.boardId;
|
||||||
file.cardId = card._id;
|
file.cardId = card._id;
|
||||||
file.userId = Meteor.userId();
|
file.userId = Meteor.userId();
|
||||||
Attachments.insert(file);
|
const attachment = Attachments.insert(file);
|
||||||
|
|
||||||
|
if (attachment && attachment._id && attachment.isImage()) {
|
||||||
|
card.setCover(attachment._id);
|
||||||
|
}
|
||||||
|
|
||||||
pastedResults = null;
|
pastedResults = null;
|
||||||
$(document.body).pasteImageReader(() => {});
|
$(document.body).pasteImageReader(() => {});
|
||||||
Popup.close();
|
Popup.close();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue