base: enable search on mobile
This commit is contained in:
parent
375fcbb2c7
commit
1d01583913
3 changed files with 113 additions and 44 deletions
|
|
@ -329,13 +329,11 @@ function Xe() {
|
|||
a.open(r, o, !0), a.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.onload = () => {
|
||||
var l, u;
|
||||
if (e.dataset.modalcontainer) {
|
||||
const d = document.querySelector(e.dataset.modalcontainer);
|
||||
d != null && (new $(d).show(), console.log("got modal"));
|
||||
|
||||
const modalElement = document.getElementById('govplan-searchmodal-275111');
|
||||
const modal = new bootstrap.Modal(modalElement);
|
||||
modal.show();
|
||||
|
||||
const modalElement = document.querySelector(e.dataset.modalcontainer);
|
||||
if (modalElement) {
|
||||
const modal = new bootstrap.Modal(modalElement);
|
||||
modal.show();
|
||||
}
|
||||
} else if (e.dataset.modal) {
|
||||
const d = document.getElementById(e.dataset.modal);
|
||||
(l = d == null ? void 0 : d.dataset) != null && l.bsTarget && ((u = $.getInstance(document.querySelector(d.dataset.bsTarget))) == null || u.hide())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue