mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Use less jQuery, more native
This commit is contained in:
parent
24cb874c87
commit
bdb36ec128
35 changed files with 492 additions and 779 deletions
|
|
@ -13,7 +13,6 @@ import {
|
|||
|
||||
import {
|
||||
isNonEmptyArray,
|
||||
clearBqSwitcher,
|
||||
replySubjectAdd,
|
||||
encodeHtml,
|
||||
inFocus,
|
||||
|
|
@ -855,13 +854,7 @@ class ComposePopupView extends AbstractViewNext {
|
|||
sDate = momentorFormat(message.dateTimeStampInUTC(), 'FULL');
|
||||
sSubject = message.subject();
|
||||
aDraftInfo = message.aDraftInfo;
|
||||
|
||||
const clonedText = jQuery(message.body).clone();
|
||||
if (clonedText) {
|
||||
clearBqSwitcher(clonedText);
|
||||
|
||||
sText = clonedText.html();
|
||||
}
|
||||
sText = message.bodyAsHTML();
|
||||
|
||||
let resplyAllParts = null;
|
||||
switch (lineComposeType) {
|
||||
|
|
|
|||
|
|
@ -610,9 +610,7 @@ class ContactsPopupView extends AbstractViewNext {
|
|||
}
|
||||
|
||||
onBuild(dom) {
|
||||
this.oContentVisible = jQuery('.b-list-content', dom);
|
||||
|
||||
this.selector.init(this.oContentVisible, this.oContentVisible, KeyState.ContactList);
|
||||
this.selector.init(dom[0].querySelector('.b-list-content'), KeyState.ContactList);
|
||||
|
||||
key('delete', KeyState.ContactList, () => {
|
||||
this.deleteCommand();
|
||||
|
|
|
|||
|
|
@ -120,10 +120,8 @@ class MessageOpenPgpPopupView extends AbstractViewNext {
|
|||
this.privateKeys(privateKeys);
|
||||
|
||||
if (this.viewModelDom) {
|
||||
this.viewModelDom
|
||||
.find('.key-list__item')
|
||||
.first()
|
||||
.click();
|
||||
const el = this.viewModelDom.querySelector('.key-list__item');
|
||||
el && el.click();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue