AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/plats-individuels/lyon/media/com_cpanel/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/plats-individuels/lyon/media/com_cpanel/js/admin-add_module-es5.js
(function () {
  'use strict';

  /**
   * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   */
  (function (document) {
    document.addEventListener('DOMContentLoaded', function () {
      window.jSelectModuleType = function () {
        var elements = document.querySelectorAll('#moduleDashboardAddModal .modal-footer .btn.hidden');
        if (elements.length) {
          setTimeout(function () {
            elements.forEach(function (button) {
              button.classList.remove('hidden');
            });
          }, 1000);
        }
      };
      var buttons = document.querySelectorAll('#moduleDashboardAddModal .modal-footer .btn');
      var hideButtons = [];
      var isSaving = false;
      if (buttons.length) {
        buttons.forEach(function (button) {
          if (button.classList.contains('hidden')) {
            hideButtons.push(button);
          }
          button.addEventListener('click', function (event) {
            var elem = event.currentTarget;

            // There is some bug with events in iframe where currentTarget is "null"
            // => prevent this here by bubble up
            if (!elem) {
              elem = event.target;
            }
            if (elem) {
              var clickTarget = elem.dataset.bsTarget;

              // We remember to be in the saving process
              isSaving = clickTarget === '#saveBtn';

              // Reset saving process, if e.g. the validation of the form fails
              setTimeout(function () {
                isSaving = false;
              }, 1500);
              var iframe = document.querySelector('#moduleDashboardAddModal iframe');
              var content = iframe.contentDocument || iframe.contentWindow.document;
              var targetBtn = content.querySelector(clickTarget);
              if (targetBtn) {
                targetBtn.click();
              }
            }
          });
        });
      }
      var elementH = document.querySelector('#moduleDashboardAddModal');
      if (elementH) {
        elementH.addEventListener('hide.bs.modal', function () {
          hideButtons.forEach(function (button) {
            button.classList.add('hidden');
          });
        });
        elementH.addEventListener('hidden.bs.modal', function () {
          if (isSaving) {
            setTimeout(function () {
              window.parent.location.reload();
            }, 1000);
          }
        });
      }
    });
  })(document);

})();

Anon7 - 2022
AnonSec Team