CoreFiles by mySites.guru
admin-associations-default-es5.js23 lines, 605 bytes, from Joomla_4.0.0-Stable-Full_Package.zip
Raw History Compare with 3.10.12
md5
590b733f363f409db92d2b8a195bd500
sha1
7ecb1c2b09e7531176ba7e6de5532ed8c1a7e0a7
sha256
054320b8f369ee533821e4b3cafbbcbcc816deb94e4ff87514b409df1c15214f
(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 22 releases, Joomla 4.0.0-rc2 to 4.1.0-beta2. See them all, or every version of this file.