CoreFiles by mySites.guru
maps-es5.js24 lines, 660 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
34c2729e176e37c8e84f8562617f1bb0
sha1
7102e4e2397242ba6fd5a32cf70d83c3f3dcfdbf
sha256
480550d6b842d35fd720373a7ac5ab931848d3bb035ed28e84fbfdad056db2ab
(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 40 releases, Joomla 4.1.0-rc1 to 4.2.9. See them all, or every version of this file.