CoreFiles by mySites.guru
filters.js26 lines, 655 bytes, from Joomla_4.1.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.1.0-beta1
md5
7a0b4f1419820f63fd1d6a1b3504dc5e
sha1
09f7caf167a907b4b1f564d59103a7e9f4e261bb
sha256
0b972ae52b372da5fd5e5b104a5bf8f31ac8e5501b75b164af9bbf7ee4203fe2
/**
 * @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 67 releases, Joomla 4.0.0-rc2 to 4.2.9. See them all, or every version of this file.