CoreFiles by mySites.guru
index-es5.js29 lines, 854 bytes, from Joomla_4.0.0-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 3.10.12-rc1
md5
cbec786de9c76a713818fd32e2881a7c
sha1
7dd0ea6ee368f9ac9fda4dbe59d5ce64d9f15408
sha256
a24b0cf0b1b77fd86de0ed2a8d99e211d23e167b406d3238df255c209c8dde03
(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 === 'index.purge' && !window.confirm(Joomla.JText._('COM_FINDER_INDEX_CONFIRM_PURGE_PROMPT'))) {
          return false;
        } // TODO replace with joomla-alert


        if (pressbutton === 'index.delete' && !window.confirm(Joomla.JText._('COM_FINDER_INDEX_CONFIRM_DELETE_PROMPT'))) {
          return false;
        }

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

}());

No other release has this exact content. See every version of this file.