Where would I put the ajax search function inside users-search.js? It would return a php page containing the data-kt-search-element="results"
"use strict";
var KTModalUserSearch = function() {
var e, t, n, s, a, r = function(e) {
setTimeout((function() {
var a = KTUtil.getRandomInt(1, 3);
t.classList.add("d-none"), 3 === a ? (n.classList.add("d-none"), s.classList.remove("d-none")) : (n.classList.remove("d-none"), s.classList.add("d-none")), e.complete()
}), 1500)
},
o = function(e) {
t.classList.remove("d-none"), n.classList.add("d-none"), s.classList.add("d-none")
};
return {
init: function() {
(e = document.querySelector("#kt_modal_users_search_handler")) && (e.querySelector('[data-kt-search-element="wrapper"]'), t = e.querySelector('[data-kt-search-element="suggestions"]'), n = e.querySelector('[data-kt-search-element="results"]'), s = e.querySelector('[data-kt-search-element="empty"]'), (a = new KTSearch(e)).on("kt.search.process", r), a.on("kt.search.clear", o))
}
}
}();
KTUtil.onDOMContentLoaded((function() {
KTModalUserSearch.init()
}));
Nvm figured it out thank you!
Where would I take that src file? Would I copy / paste it into the KTLayoutSearch function in scripts.bundle.js??