CoreFiles by mySites.guru
index-es5.js29 lines, 852 bytes, from Joomla_4.0.6-Stable-Full_Package.zip
Raw History Compare with 4.0.5
md5
75aa3f343d96c178519711e3b026be84
sha1
09eb5d6d81e81402713de74193ec6e7f57700ae2
sha256
35e1c6108d1bc032dec6736b04b0bfe0c17370050ebc0abdb2d62003f6d148ab
(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.Text._('COM_FINDER_INDEX_CONFIRM_PURGE_PROMPT'))) {
          return false;
        } // TODO replace with joomla-alert


        if (pressbutton === 'index.delete' && !window.confirm(Joomla.Text._('COM_FINDER_INDEX_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.