CoreFiles by mySites.guru
filters-es5.js27 lines, 761 bytes, from Joomla_4.4.14-Stable-Full_Package.zip
Raw History Compare with 4.4.13
md5
99f62b1ad6a8079f71206d6a5856d744
sha1
2c4b606e152b36f3cfa4a63cd5a74da0c424285e
sha256
0a3c8a1bb4ab85767def58f72826917653f6bfc2ee349312851ee8f82da02639
(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 57 releases, Joomla 4.3.0-alpha1 to 5.0.0-alpha1. See them all, or every version of this file.