CoreFiles by mySites.guru
admin-associations-default.es6.js18 lines, 540 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
ed773f8d6c6ef9d8a8d7f8185d8db4d4
sha1
89356fb918a4d43f2342b385d4b613248113d4c1
sha256
941fb314dae92e6af894e5276f25bdab3aa9f23a7c149ef4183e6db9e38987fa
/**
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @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;
};

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.