CoreFiles by mySites.guru
filters-es5.js30 lines, 759 bytes, from Joomla_4.1.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 4.1.0-alpha1
md5
c83ba9b9f13198deec242316621dab47
sha1
26afb5cf90a5342fd64cc86d37ca4426a9866098
sha256
bb828c9dd8a7ac5042deffc810532164f61f8c519d0825c551b3a83d2195f8cc
(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 22 releases, Joomla 4.0.0-rc2 to 4.1.0-beta2. See them all, or every version of this file.