CoreFiles by mySites.guru
admin-associations-default.js18 lines, 524 bytes, from Joomla_4.2.8-Stable-Full_Package.zip
Raw History Compare with 4.2.7
md5
69ce5b55cef26e16c3cd37a6fca3b55b
sha1
089a3d0447d6b98c064f492d71fb9f6a984f6114
sha256
13de610a257da869f7f1b3e6fc4869af5a727d0dbaab48a30b0656c7a1673426
/**
 * @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 = 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 67 releases, Joomla 4.0.0-rc2 to 4.2.9. See them all, or every version of this file.