CoreFiles by mySites.guru
filters.js31 lines, 842 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
761fae28ce4a99182e26a6b6e55746aa
sha1
488c29f987ba03f02c221a5a7d65e16caea42aa0
sha256
835b7d4cfb731933ef14627f4173203eba763607e32a64b7d2fbc543265c6d84
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
(function (Joomla) {
  'use strict';

  if (!Joomla) {
    window.Joomla = {};
  }

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

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

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

No other release has this exact content. See every version of this file.