CoreFiles by mySites.guru
maps.js20 lines, 568 bytes, from Joomla_4.2.3-Stable-Full_Package.zip
Raw History Compare with 4.2.2
md5
707370c7c8a54a0036a0de21455d80b6
sha1
5f7787da7146e2ae4b448d9f8daf09b468479f05
sha256
bbb36f8fb249439d6edf513248f82e6f707ddb521f47b2c5b8fa3e2f887033f3
/**
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

(() => {

  document.addEventListener('DOMContentLoaded', () => {
    Joomla.submitbutton = pressbutton => {
      // @todo replace with joomla-alert
      if (pressbutton === 'map.delete' && !window.confirm(Joomla.Text._('COM_FINDER_MAPS_CONFIRM_DELETE_PROMPT'))) {
        return false;
      }

      Joomla.submitform(pressbutton);
      return true;
    };
  });
})();

The same content is in 40 releases, Joomla 4.1.0-rc1 to 4.2.9. See them all, or every version of this file.