芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.7/com_fields/js/admin-field-edit.js
/** * @copyright (C) 2018 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt */ document.addEventListener('DOMContentLoaded', () => { const title = document.getElementById('jform_title'); title.dpOldValue = title.value; title.addEventListener('change', ({ currentTarget }) => { const label = document.getElementById('jform_label'); const changedTitle = currentTarget; if (changedTitle.dpOldValue === label.value) { label.value = changedTitle.value; } changedTitle.dpOldValue = changedTitle.value; }); });