mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 21:47:10 -04: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) {
|
||||
|
||||
// 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();
|
||||
},
|
||||
'click #viewer-content'(event) {
|
||||
|
||||
// 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();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue