1
0
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:
codecalm
2019-07-10 21:06:09 +02:00
parent 2de4fa18b9
commit c00da17f2b
2 changed files with 24 additions and 19 deletions
+4 -3
View File
@@ -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) {
if (elements) {
elements.forEach((e) => e.checked = false);
this.form.querySelector(`[name="${name}"][value="${value}"]`).checked = true;
}
}
};
/*
+4
View File
@@ -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;
}
@@ -227,6 +230,7 @@ Fixed navbar
margin-left: 0;
margin-right: $sidenav-folded-width;
}
}
}
/*