403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.208
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/planeacion/media/com_finder/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/planeacion/media/com_finder/js/finder-edit.js
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

Joomla = window.Joomla || {};
(() => {

  document.addEventListener('DOMContentLoaded', () => {
    // Handle toggle all
    document.querySelectorAll('.filter-toggle-all').forEach(button => {
      button.addEventListener('click', () => document.querySelectorAll('.filter-node').forEach(node => node.click()));
    });

    // Update the count
    document.querySelectorAll('.filter-node').forEach(() => {
      const count = document.getElementById('jform_map_count');
      if (count) {
        count.value = document.querySelectorAll('input[type="checkbox"]:checked').length;
      }
    });
    document.querySelectorAll('.js-filter').forEach(button => {
      button.addEventListener('click', event => {
        const btn = event.currentTarget;
        document.querySelectorAll(`.${btn.dataset.id}`).forEach(el => el.click());
      });
    });

    // Expand/collapse
    const expandAccordion = document.getElementById('expandAccordion');
    if (expandAccordion) {
      expandAccordion.addEventListener('click', event => {
        event.preventDefault();
        let elements;
        if (event.target.innerText === Joomla.Text._('COM_FINDER_FILTER_SHOW_ALL')) {
          event.target.innerText = Joomla.Text._('COM_FINDER_FILTER_HIDE_ALL');
          elements = document.querySelectorAll('.accordion-button.collapsed');
        } else {
          event.target.innerText = Joomla.Text._('COM_FINDER_FILTER_SHOW_ALL');
          elements = document.querySelectorAll('.accordion-button:not(.collapsed)');
        }
        if (elements) {
          elements.forEach(element => element.click());
        }
      });
    }
  });
})();

Youez - 2016 - github.com/yon3zu
LinuXploit