CoreFiles by mySites.guru
index-es5.js29 lines, 852 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
f8e683102b18554e741822a9422be359
sha1
a0c99fb2a25a6d888bc4bb846cba1359a02007f1
sha256
93f0919186fdcef913c6b712a6bcfaac165bd19773bf1c51e44fbe8fbdbd10a3
(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 22 releases, Joomla 4.0.0-rc2 to 4.1.0-beta2. See them all, or every version of this file.