芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.5/com_languages/js/admin-override-edit-refresh-searchstring.js
/** * @copyright (C) 2018 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt */ document.addEventListener('DOMContentLoaded', () => { document.getElementById('jform_searchstring').addEventListener('focus', ({ srcElement }) => { if (!Joomla.overrider.states.refreshed) { const expired = document.getElementById('overrider-spinner').getAttribute('data-search-string-expired'); if (expired) { Joomla.overrider.refreshCache(); Joomla.overrider.states.refreshed = true; } } srcElement.classList.remove('invalid'); }, false); document.getElementById('more-results-button').addEventListener('click', () => { Joomla.overrider.searchStrings(Joomla.overrider.states.more); }, false); });