CoreFiles by mySites.guru
folderinstaller-es5.js33 lines, 919 bytes, from Joomla_4.0.4-Stable-Full_Package.zip
Raw History Compare with 4.0.3
md5
406d552f15ea4a82b4da2fbae710c62f
sha1
8693def39f77c004e2171b728b55b6940f46f155
sha256
8704b8e84c9fc6882a00abfae5ad12205e0a8065305f7dde0120d85704b4771d
(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 23 releases, Joomla 4.0.0-rc1 to 4.1.0-beta2. See them all, or every version of this file.