CoreFiles by mySites.guru
admin-associations-default.js17 lines, 523 bytes, from Joomla_4.4.8-Stable-Full_Package.zip
Raw History Compare with 4.4.7
md5
5bdec61d081594f01a7c4aac2c8244e7
sha1
4842ddff3163fb1c8c304f3f5fe137bd442a2095
sha256
b2f9d0e7955aab487ab6711fb178a01e35710ec05f09dd09fe1fbf582c4337c3
/**
 * @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 138 releases, Joomla 4.3.0-alpha1 to 6.0.0-alpha3. See them all, or every version of this file.