CoreFiles by mySites.guru
button.min.js1 lines, 787 bytes, from Joomla_4.4.2-Stable-Full_Package.zip
Raw History Compare with 4.4.1
md5
54f4809bf0210289d5b74eda25e1f5ef
sha1
a5116b31eea12569a373bca817518225de621d0a
sha256
ab2d8e0096d69b602f5d18fccf8796214bfe6891ac699474c8a71692ff9ce746
import{E as a,d as r,B as c}from"./dom.min.js?5.3.0";const i="button",l="bs.button",u=`.${l}`,A=".data-api",g="active",s='[data-bs-toggle="button"]',E=`click${u}${A}`;class e extends c{static get NAME(){return i}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(g))}static jQueryInterface(o){return this.each(function(){const n=e.getOrCreateInstance(this);o==="toggle"&&n[o]()})}}if(a.on(document,E,s,t=>{t.preventDefault();const o=t.target.closest(s);e.getOrCreateInstance(o).toggle()}),r(e),window.bootstrap=window.bootstrap||{},window.bootstrap.Button=e,Joomla&&Joomla.getOptions){const t=Joomla.getOptions("bootstrap.button");t&&t.length&&t.forEach(o=>{Array.from(document.querySelectorAll(o)).map(n=>new window.bootstrap.Button(n))})}export{e as B};

The same content is in 28 releases, Joomla 4.4.1-rc1 to 4.4.14. See them all, or every version of this file.