CoreFiles by mySites.guru
admin-field-edit.js23 lines, 763 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
c4d5381ff3cafb06c5c223b58ef9ee58
sha1
da41fc632924d8a8d8d0908315c3fb950f7df5cc
sha256
51a6ce7d007c774e4f9f95b1f41f31c6216a827e29c6c24e2cf38b736ca7cd74
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
document.addEventListener('DOMContentLoaded', function () {
  var title = document.getElementById('jform_title');
  title.dpOldValue = title.value;
  title.addEventListener('change', function (event) {
    var label = document.getElementById('jform_label');
    var changedTitle = event.currentTarget;

    if (changedTitle.dpOldValue === label.value) {
      label.value = changedTitle.value;
    }

    changedTitle.dpOldValue = changedTitle.value;
  });
});

The same content is in 5 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha11. See them all, or every version of this file.