HEX
Server: Apache
System: Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64
User: server (1002)
PHP: 8.3.20
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /home/muoapartman/www/wp-content/themes/hotel-pagoda-lite/assets/inc/sortable/customizer-control.js
jQuery( document ).ready( function($) {
    jQuery( "body" ).on( 'hover', '.cpm-framework-sortable-handle', function() {
        jQuery( 'ul.cpm-framework-sortable-list' ).sortable({
            handle: '.cpm-framework-sortable-handle',
            axis: 'y',
            update: function( e, ui ){
                jQuery('input.cpm-framework-sortable-item').trigger( 'change' );
            }
        });
    });

    /* On changing the value. */
    jQuery( "body" ).on( 'change', 'input.cpm-framework-sortable-item', function() {
        /* Get the value, and convert to string. */
        this_checkboxes_values = jQuery( this ).parents( 'ul.cpm-framework-sortable-list' ).find( 'input.cpm-framework-sortable-item' ).map( function() {
            return this.value;
        }).get().join( ',' );

        /* Add the value to hidden input. */
        jQuery( this ).parents( 'ul.cpm-framework-sortable-list' ).find( 'input.cpm-framework-sortable' ).val( this_checkboxes_values ).trigger( 'change' );

    });
});