mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 20:58:48 +01:00
Fix navigation between attachments
This commit is contained in:
parent
17aa702860
commit
6ffde36d84
1 changed files with 8 additions and 2 deletions
|
|
@ -231,14 +231,20 @@ Template.attachmentViewer.events({
|
||||||
'click #viewer-container'(event) {
|
'click #viewer-container'(event) {
|
||||||
|
|
||||||
// Make sure the click was on #viewer-container and not on any of its children
|
// Make sure the click was on #viewer-container and not on any of its children
|
||||||
if(event.target !== event.currentTarget) return;
|
if(event.target !== event.currentTarget) {
|
||||||
|
event.stopPropagation();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
closeAttachmentViewer();
|
closeAttachmentViewer();
|
||||||
},
|
},
|
||||||
'click #viewer-content'(event) {
|
'click #viewer-content'(event) {
|
||||||
|
|
||||||
// Make sure the click was on #viewer-content and not on any of its children
|
// Make sure the click was on #viewer-content and not on any of its children
|
||||||
if(event.target !== event.currentTarget) return;
|
if(event.target !== event.currentTarget) {
|
||||||
|
event.stopPropagation();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
closeAttachmentViewer();
|
closeAttachmentViewer();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue