CoreFiles by mySites.guru
filters.js23 lines, 655 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
740aec5d4db681920332d5d2332d9524
sha1
4036b390cab9d7a26457aba45973382e9739eb20
sha256
86d05c4f9482954f37b4ff4d4b5815845ea2f8e0d9cd87589c5c3292b49f1a42
/**
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
(Joomla => {

  if (!Joomla) {
    window.Joomla = {};
  }
  const onBoot = () => {
    Joomla.submitbutton = pressbutton => {
      if (pressbutton === 'filters.delete' && !window.confirm(Joomla.Text._('COM_FINDER_INDEX_CONFIRM_DELETE_PROMPT'))) {
        return false;
      }
      Joomla.submitform(pressbutton);
      return true;
    };

    // Cleanup
    document.addEventListener('DOMContentLoaded', onBoot);
  };
  document.addEventListener('DOMContentLoaded', onBoot);
})(Joomla);

The same content is in 214 releases, Joomla 4.3.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.