CoreFiles by mySites.guru
maps.js26 lines, 745 bytes, from Joomla_4.0.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta2
md5
e93e7d3b46b99a2cd3b88c295cc180d9
sha1
c1a2849a985bd1b0811497b9b74aeb0f89adcf15
sha256
7ac7c5b1e59a2c4f9676b1f6f8393de06ad4a558b81d7ef332c86195972114a3
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

(function () {
  'use strict';

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

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

The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.