CoreFiles by mySites.guru
admin-fields-modal-es5.js29 lines, 910 bytes, from Joomla_4.4.2-Stable-Full_Package.zip
Raw History Compare with 4.4.1
md5
5298c05df0354038955cb856b918d1d4
sha1
019298b5202c8010f1017ee759e4fe1f8d0d1f83
sha256
ca6fddd34fe9d9a46ab79e51408c1077443f578e3f95cb4e5a0c83bac487eba8
(function () {
  'use strict';

  /**
   * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   */
  (function (Joomla) {
    if (!window.parent.Joomla) {
      throw new Error('core.js was not properly initialised');
    }
    if (!Joomla) {
      window.Joomla = {};
    }
    Joomla.fieldIns = function (id, editor) {
      window.parent.Joomla.editors.instances[editor].replaceSelection("{field " + id + "}");
      if (window.parent.Joomla.Modal) {
        window.parent.Joomla.Modal.getCurrent().close();
      }
    };
    Joomla.fieldgroupIns = function (id, editor) {
      window.parent.Joomla.editors.instances[editor].replaceSelection("{fieldgroup " + id + "}");
      if (window.parent.Joomla.Modal) {
        window.parent.Joomla.Modal.getCurrent().close();
      }
    };
  })(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.