More jQuery to native (including bootstrap.js)

This commit is contained in:
djmaze 2020-08-30 10:30:50 +02:00
parent bdb36ec128
commit 69fcc240e9
39 changed files with 496 additions and 344 deletions

View file

@ -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';
}
}

View file

@ -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);

View file

@ -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) {