CoreFiles by mySites.guru
debug-es5.js49 lines, 1,745 bytes, from Joomla_5.0.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 4.4.0-alpha4
md5
895236123e9e44c2de2e9cabd62aea1b
sha1
57b28954fc83953f617f486866234c53f0fd2720
sha256
98b16330720c071cb8fe030a596c73448f5d954cca1030c1bde9736db97cbecf
(function () {
  'use strict';

  /**
   * @copyright  (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   */
  // eslint-disable no-alert
  (function (Joomla, document) {
    if (!Joomla) {
      throw new Error('core.js was not properly initialised');
    }
    Joomla.finderIndexer = function () {
      var path = 'index.php?option=com_finder&task=indexer.debug&tmpl=component&format=json';
      var token = "&" + document.getElementById('finder-indexer-token').getAttribute('name') + "=1";
      Joomla.debugIndexing = function () {
        var formEls = new URLSearchParams(Array.from(new FormData(document.getElementById('debug-form')))).toString();
        Joomla.request({
          url: "" + path + token + "&" + formEls,
          method: 'GET',
          data: '',
          perform: true,
          headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
          },
          onSuccess: function onSuccess(response) {
            var output = document.getElementById('indexer-output');
            try {
              var parsed = JSON.parse(response);
              output.innerHTML = parsed.rendered;
            } catch (e) {
              output.innerHTML = response;
            }
          },
          onError: function onError(xhr) {
            var output = document.getElementById('indexer-output');
            output.innerHTML = xhr.response;
          }
        });
      };
    };
  })(Joomla, document);

  // @todo use directly the Joomla.finderIndexer() instead of the Indexer()!!!
  document.addEventListener('DOMContentLoaded', function () {
    window.Indexer = Joomla.finderIndexer();
  });

})();

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