CoreFiles by mySites.guru
filters.js32 lines, 839 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
5d39333d07b6a7c01b77c8d11b968378
sha1
b3a97f66317d1b66084e0ed0dce88675ee6cc1c9
sha256
2490d4c55c939ff8b507e0484727379082c35f99826f524a8bd344a799f9ab1c
/**
* 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.