CoreFiles by mySites.guru
admin-associations-default-es5.js23 lines, 605 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
d537c52ae4eb35be1fb7e087593063d9
sha1
b1b6e4d099a349c70ab170cabeca983b0c11be4f
sha256
3ce043d4994117b72b20a4d3b7a1942693c31b3e7f0e085ca93dfce7dc615e1f
(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.submitbutton = function (pressbutton) {
    if (pressbutton === 'associations.purge') {
      // eslint-disable-next-line no-restricted-globals
      if (confirm(Joomla.Text._('COM_ASSOCIATIONS_PURGE_CONFIRM_PROMPT'))) {
        Joomla.submitform(pressbutton);
      } else {
        return false;
      }
    } else {
      Joomla.submitform(pressbutton);
    }

    return true;
  };

})();

The same content is in 45 releases, Joomla 4.0.6-rc1 to 4.2.9. See them all, or every version of this file.