mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Replace some data-bind="click: function(){} with object functions to prevent eval()
This commit is contained in:
parent
95808ba377
commit
0d6499702d
17 changed files with 53 additions and 16 deletions
|
|
@ -225,6 +225,10 @@ export class MailMessageView extends AbstractViewRight {
|
|||
});
|
||||
}
|
||||
|
||||
toggleFullInfo() {
|
||||
this.showFullInfo(!this.showFullInfo());
|
||||
}
|
||||
|
||||
closeMessage() {
|
||||
currentMessage(null);
|
||||
}
|
||||
|
|
@ -393,9 +397,7 @@ export class MailMessageView extends AbstractViewRight {
|
|||
|
||||
// message information
|
||||
registerShortcut('i', 'meta', [Scope.MessageList, Scope.MessageView], () => {
|
||||
if (currentMessage()) {
|
||||
this.showFullInfo(!this.showFullInfo());
|
||||
}
|
||||
currentMessage() && this.toggleFullInfo();
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue