mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
More jQuery to native (including bootstrap.js)
This commit is contained in:
parent
bdb36ec128
commit
69fcc240e9
39 changed files with 496 additions and 344 deletions
|
|
@ -28,12 +28,12 @@ const componentExportHelper = (ClassObject, templateID = '') => ({
|
|||
|
||||
if (componentInfo && componentInfo.element) {
|
||||
params.component = componentInfo;
|
||||
params.element = jQuery(componentInfo.element);
|
||||
params.element = componentInfo.element;
|
||||
|
||||
i18nToNodes(componentInfo.element);
|
||||
|
||||
if (undefined !== params.inline && ko.unwrap(params.inline)) {
|
||||
params.element.css('display', 'inline-block');
|
||||
params.element.style.display = 'inline-block';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class AbstractInput extends AbstractComponent {
|
|||
});
|
||||
|
||||
if (undefined !== params.width && params.element) {
|
||||
params.element.find('input,select,textarea').css('width', params.width);
|
||||
params.element.querySelectorAll('input,select,textarea').forEach(node => node.style.width = params.width);
|
||||
}
|
||||
|
||||
this.disposable.push(this.className);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ class SaveTriggerComponent extends AbstractComponent {
|
|||
constructor(params) {
|
||||
super();
|
||||
|
||||
this.element = params.element || null;
|
||||
this.element = jQuery(params.element) || null;
|
||||
this.value = params.value && params.value.subscribe ? params.value : null;
|
||||
|
||||
if (this.element) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue