CoreFiles by mySites.guru
folderinstaller-es5.js32 lines, 925 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
e737263605b9ec9811a3906e5b6295ac
sha1
8edc0702a3af6ba4367d020c8aaf8eb0563e8a20
sha256
645a24bb2cafb5c4b38e16e917879ee33f88a6d436c4dea4ba651329db703236
(function () {
  'use strict';

  /**
   * @copyright   (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   */

  Joomla = window.Joomla || {};
  (function (Joomla) {
    document.addEventListener('DOMContentLoaded', function () {
      Joomla.submitbuttonfolder = function () {
        var form = document.getElementById('adminForm');

        // do field validation
        if (form.install_directory.value === '') {
          Joomla.renderMessages({
            warning: [Joomla.Text._('PLG_INSTALLER_FOLDERINSTALLER_NO_INSTALL_PATH')]
          });
        } else {
          var loading = document.getElementById('loading');
          if (loading) {
            loading.classList.remove('hidden');
          }
          form.installtype.value = 'folder';
          form.submit();
        }
      };
    });
  })(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.