forked from UKSOURCE/cms.hailearning.edu.vn
fix: on/off tab in home page
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!-- Video Gallery Tab -->
|
||||
<!-- Video Gallery Tab -->
|
||||
<div class="tab-pane fade" id="videogallery" role="tabpanel">
|
||||
<div class="row g-4">
|
||||
<div class="col-md-12">
|
||||
@@ -64,7 +64,7 @@
|
||||
window.homeScrapers.videoGallery = () => {
|
||||
const getVal = (id) => (document.getElementById(id)?.value || "").trim();
|
||||
|
||||
const enabled = document.getElementById("videoGalleryEnabled")?.checked !== false;
|
||||
const enabled = document.getElementById("videoGalleryEnabled")?.checked === true;
|
||||
return {
|
||||
heading: getVal("videoGalleryHeading"),
|
||||
videoUrl: getVal("videoGalleryVideoUrl"),
|
||||
|
||||
Reference in New Issue
Block a user