CoreFiles by mySites.guru
finder.min.js1 lines, 1,269 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
c4e8a1d7c8c091469848e368c502a766
sha1
8b567f15c73c2a2dad3e5745dcdfb4bb92d5b969
sha256
e62c04ce408d763bd1ee5516ecaa4550bbcaf3ec387068b14c25176db3d9c1a0
(function(a,b,c,d){"use strict";if(!b)throw new Error("core.js was not properly initialised");var e=function(a){1<a.target.value.length&&(a.target.awesomplete.list=[],b.request({url:"".concat(b.getOptions("finder-search").url,"&q=").concat(a.target.value),method:"GET",data:{q:a.target.value},perform:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess:function d(b){var c=JSON.parse(b);"[object Array]"===Object.prototype.toString.call(c.suggestions)&&(a.target.awesomplete.list=c.suggestions)},onError:function c(a){0<a.status&&b.renderMessages(b.ajaxErrorsMessages(a))}}))},f=function(a){a.stopPropagation();var b=a.target.querySelector(".js-finder-advanced");if(b.length){var c=[].slice.call(b.querySelectorAll("select"));c.forEach(function(a){a.value||a.setAttribute("disabled","disabled")})}},g=function(){var c=[].slice.call(d.querySelectorAll(".js-finder-search-query"));c.forEach(function(c){b.getOptions("finder-search")&&(c.awesomplete=new a(c),c.addEventListener("keyup",e))});var h=[].slice.call(d.querySelectorAll(".js-finder-searchform"));h.forEach(function(a){a.addEventListener("submit",f)}),d.removeEventListener("DOMContentLoaded",g)};d.addEventListener("DOMContentLoaded",g)})(window.Awesomplete,window.Joomla,window,document);

The same content is in 2 releases, Joomla 4.0.0-alpha6 to 4.0.0-alpha7. See them all, or every version of this file.