CoreFiles by mySites.guru
admin-fields-modal-es5.js34 lines, 915 bytes, from Joomla_4.2.4-Stable-Full_Package.zip
Raw History Compare with 4.2.3
md5
0a4291937bd02ed3377720be7ef9420e
sha1
4d33cedce52fe6797e7184be9018ea24cfb71dc8
sha256
ee54b485286b73bf1f4e946c47df19c9bf0225da58c157090c3725b9b5b09def
(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 45 releases, Joomla 4.0.6-rc1 to 4.2.9. See them all, or every version of this file.