CoreFiles by mySites.guru
index-es5.js29 lines, 854 bytes, from Joomla_4.1.2-Stable-Full_Package.zip
Raw History Compare with 4.1.1
md5
4a741f6da6fe2c4e67c04ae981816cb9
sha1
550fc6bab8c67145bd3b052b6f8af91e05f88407
sha256
2d6e7fc385f62f1a1083f5f72353cd9d4f9821ec4935804acaa0b0e161e16e44
(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 19 releases, Joomla 4.1.0-rc1 to 4.2.0-alpha3. See them all, or every version of this file.