CoreFiles by mySites.guru
admin-associations-default.js18 lines, 525 bytes, from Joomla_4.0.0-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 3.10.12-rc1
md5
6eff415927327b97c192b7d064285872
sha1
bc25870f863262b25ee99a65870f55ab1ee966c1
sha256
f4e41ce890c7988c4316bf061d321d0881f6e4a742bee9dab5ad24482ee68a12
/**
 * @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.JText._('COM_ASSOCIATIONS_PURGE_CONFIRM_PROMPT'))) {
      Joomla.submitform(pressbutton);
    } else {
      return false;
    }
  } else {
    Joomla.submitform(pressbutton);
  }

  return true;
};

No other release has this exact content. See every version of this file.