mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 12:48:49 +01:00
Card Details Popup, every "Sub-Popup" must use .back() instead of .close()
- .close() closes the popup. Until now it was ok, but as the Card Details are opened in a popup too, .back() must be used to get the same behaviour back - .back() is also .close() if there is no "popup layer" left
This commit is contained in:
parent
a6d3810e19
commit
a59dfa8fc0
5 changed files with 51 additions and 77 deletions
|
|
@ -4,7 +4,7 @@ Template.attachmentsGalery.events({
|
|||
'attachmentDelete',
|
||||
function() {
|
||||
Attachments.remove(this._id);
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
},
|
||||
),
|
||||
// If we let this event bubble, FlowRouter will handle it and empty the page
|
||||
|
|
@ -53,7 +53,7 @@ Template.attachmentsGalery.helpers({
|
|||
|
||||
Template.previewAttachedImagePopup.events({
|
||||
'click .js-large-image-clicked'() {
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ Template.cardAttachmentsPopup.events({
|
|||
if (attachment && attachment._id && attachment.isImage()) {
|
||||
card.setCover(attachment._id);
|
||||
}
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ Template.previewClipboardImagePopup.events({
|
|||
|
||||
pastedResults = null;
|
||||
$(document.body).pasteImageReader(() => {});
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue