CoreFiles by mySites.guru
admin-help-es5.js18 lines, 478 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
0bf4ff7ec90e3db69bac98388f990515
sha1
992a4f93ea582686a3d218a94b5bf3a1669770dc
sha256
b2c203a7de5f52124dafcac84245bf6e01bf701b061cf28faf240ec46d5c4eb1
(function () {
  'use strict';

  /**
    * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
    * @license     GNU General Public License version 2 or later; see LICENSE.txt
    */
  var helpIndex = document.getElementById('help-index');

  if (helpIndex) {
    [].slice.call(helpIndex.querySelectorAll('a')).map(function (element) {
      return element.addEventListener('click', function () {
        window.scroll(0, 0);
      });
    });
  }

}());

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.