mirror of
https://github.com/tabler/tabler.git
synced 2026-07-27 05:24:38 +04:00
demo config fix
This commit is contained in:
+3
-2
@@ -3,6 +3,7 @@
|
||||
class TablerDemo {
|
||||
constructor() {
|
||||
this.init();
|
||||
this.initFormControls();
|
||||
|
||||
this.form = document.querySelector('.js-layout-form');
|
||||
|
||||
@@ -18,8 +19,6 @@ class TablerDemo {
|
||||
this.onSubmitForm();
|
||||
});
|
||||
}
|
||||
|
||||
this.initFormControls();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -79,12 +78,14 @@ class TablerDemo {
|
||||
};
|
||||
|
||||
setFormValue = function(name, value,) {
|
||||
if(this.form) {
|
||||
let elements = this.form.querySelectorAll(`[name="${name}"]`);
|
||||
|
||||
if (elements) {
|
||||
elements.forEach((e) => e.checked = false);
|
||||
this.form.querySelector(`[name="${name}"][value="${value}"]`).checked = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -210,6 +210,7 @@ Fixed navbar
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
|
||||
@include media-breakpoint-up(xl) {
|
||||
& + .layout-main {
|
||||
margin-left: $sidenav-width;
|
||||
}
|
||||
@@ -218,7 +219,9 @@ Fixed navbar
|
||||
margin-left: 0;
|
||||
margin-right: $sidenav-width;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(lg) {
|
||||
&.navbar-folded + .layout-main {
|
||||
margin-left: $sidenav-folded-width;
|
||||
}
|
||||
@@ -228,6 +231,7 @@ Fixed navbar
|
||||
margin-right: $sidenav-folded-width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Right navbar
|
||||
|
||||
Reference in New Issue
Block a user