CoreFiles by mySites.guru
index.js25 lines, 756 bytes, from Joomla_4.2.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 4.2.0-alpha1
md5
1c12d685474a24765665653e7c6fe0bd
sha1
11dff2471a5a8a3fe108cad0f4777faf0c1cff7d
sha256
a6c810bd844bb846e08112b8dcd02b38012bdf3a915de0ed4a1d697506f676de
/**
 * @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 || {};

(() => {

  document.addEventListener('DOMContentLoaded', () => {
    Joomla.submitbutton = 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.