CoreFiles by mySites.guru
maps.es6.js26 lines, 725 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
bc08fd0a376a769e68a884f7845332a6
sha1
e1d48d2741d0e7d2110359a9d0ab3f979f7cb1a4
sha256
35d231983fb72a9d1dd0dd5a4f7fa86b0d9b5111bca0cc72b4265cc5f3aef549
/**
* 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 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

(() => {
  'use strict';

  document.addEventListener('DOMContentLoaded', () => {
    Joomla.submitbutton = 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 6 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha12. See them all, or every version of this file.