CoreFiles by mySites.guru
button.min.js1 lines, 779 bytes, from Joomla_5.4.0-beta2-Beta-Full_Package.zip
Raw History Compare with 5.4.0-beta1
md5
8a6da7b626f998e00bbd9a6488fcab3e
sha1
772d15f3ea008b1610b6639bb0546c75bbe40157
sha256
1e8f4db0937306fbc911bef9ed02c438c0870ce1a89bae05ec73942105362e86
import{E as a,d as r,B as c}from"./dom.min.js?5.3.7";const i="button",l="bs.button",u=`.${l}`,E=".data-api",g="active",s='[data-bs-toggle="button"]',A=`click${u}${E}`;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,A,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=>{document.querySelectorAll(o).forEach(n=>new window.bootstrap.Button(n))})}export{e as B};

The same content is in 6 releases, Joomla 5.4.0-beta1 to 6.0.0-beta3. See them all, or every version of this file.