CoreFiles by mySites.guru
filters-es5.js30 lines, 759 bytes, from Joomla_4.2.6-Stable-Full_Package.zip
Raw History Compare with 4.2.5
md5
c0e62c5a4289d39dbe376bc511382980
sha1
e49a47a572bc962d8be6a2799ad98ead94689284
sha256
30fa87ce7962bf11de46d93c483e0f336897bc9097ad64ee3811d78408a968ae
(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
   */
  (function (Joomla) {
    if (!Joomla) {
      window.Joomla = {};
    }

    var onBoot = function onBoot() {
      Joomla.submitbutton = function (pressbutton) {
        if (pressbutton === 'filters.delete' && !window.confirm(Joomla.Text._('COM_FINDER_INDEX_CONFIRM_DELETE_PROMPT'))) {
          return false;
        }

        Joomla.submitform(pressbutton);
        return true;
      }; // Cleanup


      document.addEventListener('DOMContentLoaded', onBoot);
    };

    document.addEventListener('DOMContentLoaded', onBoot);
  })(Joomla);

})();

The same content is in 45 releases, Joomla 4.0.6-rc1 to 4.2.9. See them all, or every version of this file.