CoreFiles by mySites.guru
admin-field-edit-modal.js17 lines, 643 bytes, from Joomla_4.0.0-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 3.10.12-rc1
md5
dc6e57a332cd2b59b1c654fa943140fe
sha1
66d76318f3957286115c99300b001c397af32fd0
sha256
8c3d36bfa4cbb3d7663344070955720678dd8ffbd90c80dd2ec37f8a6e806f7b
/**
 * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
(Joomla => {

  Joomla.submitbutton = task => {
    if (task === 'field.cancel' || document.formvalidator.isValid(document.getElementById('item-form'))) {
      if (window.opener && (task === 'field.save' || task === 'field.cancel')) {
        window.opener.document.closeEditWindow = window.self;
        window.opener.setTimeout('window.document.closeEditWindow.close()', 1000);
      }

      Joomla.submitform(task, document.getElementById('item-form'));
    }
  };
})(Joomla);

No other release has this exact content. See every version of this file.