forked from UKSOURCE/cms.hailearning.edu.vn
feat: enhance about us and footer CMS admin panels
- Improve aboutUs controller with better field handling - Update footer controller with expanded content management - Refine about admin view templates - Update appointment and footer admin views - Add about contract repair migration script - Update about.json seed data
This commit is contained in:
@@ -455,7 +455,7 @@
|
||||
function getCounterHost(input) {
|
||||
return (
|
||||
input.closest(".input-group") ||
|
||||
input.closest(".col-md-12, .col-md-9, .col-md-6, .col-md-4, .col-md-3, .col-lg-12, .col-lg-8, .col-lg-6, .col-lg-4, .col-12") ||
|
||||
input.closest(".col, [class^='col-'], [class*=' col-']") ||
|
||||
input.parentElement ||
|
||||
input
|
||||
);
|
||||
@@ -486,7 +486,13 @@
|
||||
counter.className = "form-text admin-field-counter";
|
||||
counter.dataset.counterFor = counterToken;
|
||||
counter.setAttribute("aria-live", "polite");
|
||||
host.insertAdjacentElement("afterend", counter);
|
||||
|
||||
if (host.classList?.contains("input-group")) {
|
||||
host.insertAdjacentElement("afterend", counter);
|
||||
} else {
|
||||
host.appendChild(counter);
|
||||
}
|
||||
|
||||
return counter;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user