CoreFiles by mySites.guru
maps-es5.js24 lines, 659 bytes, from Joomla_4.0.6-Stable-Full_Package.zip
Raw History Compare with 4.0.5
md5
9f51d14dabbe5fbeceb440d1f35bcc9a
sha1
7430ce34f8c924ca656eb539454b9df7e6ef38af
sha256
ec5e897ce4588473a8ee81a13400995b4b1f8b10ebd6e4848ee34ff9976e0900
(function () {
  'use strict';

  /**
   * @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 || {};

  (function () {
    document.addEventListener('DOMContentLoaded', function () {
      Joomla.submitbutton = function (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 5 releases, Joomla 4.0.6-rc1 to 4.1.0-beta3. See them all, or every version of this file.