CoreFiles by mySites.guru
admin-field-edit.js23 lines, 763 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
86dca2a5e1b1a64d4e6c85135b2cca5b
sha1
d74e2b91bb5608748faeaf169cbb564bd1dfe60a
sha256
4520aceaaa744c111cb89987a8960e32f6703ae4d65007554e14d89aaa43b6eb
/**
* 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 - 2018 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;
  });
});

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