mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +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
|
|
@ -72,7 +72,7 @@ class AbstractApp extends AbstractBoot {
|
|||
} else {
|
||||
const oLink = document.createElement('a');
|
||||
oLink.href = link;
|
||||
document.body.appendChild(oLink).click();
|
||||
document.body.append(oLink).click();
|
||||
oLink.remove();
|
||||
// open(link, '_self');
|
||||
}
|
||||
|
|
@ -165,11 +165,7 @@ class AbstractApp extends AbstractBoot {
|
|||
ko.components.register('SaveTrigger', require('Component/SaveTrigger').default);
|
||||
ko.components.register('Input', require('Component/Input').default);
|
||||
ko.components.register('Select', require('Component/Select').default);
|
||||
ko.components.register('Radio', require('Component/Radio').default);
|
||||
ko.components.register('TextArea', require('Component/TextArea').default);
|
||||
ko.components.register('Date', require('Component/Date').default);
|
||||
|
||||
ko.components.register('x-script', require('Component/Script').default);
|
||||
|
||||
if (Settings.appSettingsGet('materialDesign') && !bMobileDevice) {
|
||||
ko.components.register('Checkbox', require('Component/MaterialDesign/Checkbox').default);
|
||||
|
|
|
|||
|
|
@ -819,7 +819,7 @@ class AppUser extends AbstractApp {
|
|||
const resizer = doc.createElement('div'),
|
||||
cssint = s => parseFloat(getComputedStyle(source, null).getPropertyValue(s).replace('px', ''));
|
||||
resizer.className = 'resizer';
|
||||
source.appendChild(resizer);
|
||||
source.append(resizer);
|
||||
resizer.addEventListener('mousedown', {
|
||||
source: source,
|
||||
mode: mode,
|
||||
|
|
@ -995,7 +995,7 @@ class AppUser extends AbstractApp {
|
|||
script.onload = openpgpCallback;
|
||||
script.onerror = () => console.error(script.src);
|
||||
script.src = openPgpJs();
|
||||
doc.head.appendChild(script);
|
||||
doc.head.append(script);
|
||||
}
|
||||
} else {
|
||||
PgpStore.capaOpenPGP(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue