HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/teamdemo.sports-crowd.com/public/js/powerbi.js
var table;
$(document).ready(function() {
    //---------------------------------------------table----------------------------------------------------
    table = $('#example2').DataTable({
        "orderCellsTop": true,
        "responsive": true,
        "processing": true,
        "scrollX": true,
        "scrollCollapse": true,
        "paging": true,
        "language": {
            url: window.DATATABLES_LANGUAGE_URL,
        }
    });

    $('#example2 thead tr')
        .clone(true)
        .find('th')
        .removeClass('sorting_asc sorting_asc sorting')
        .off('click')
        .end()
        .appendTo('#example2 thead');

    $('#example2 thead tr:eq(1) th').each(function(i) {
        $(this).html(
            '<div class="inner-addon left-addon"><i class="glyphicon ace-icon fa fa-filter"></i><input type="text" style="width: 100%; padding-right: 5px" class="form-control"/></div>'
        );

        $('input', this).on('keyup change', function() {
            if (table.column(i).search() !== this.value) {
                table
                    .column(i)
                    .search(this.value)
                    .draw();
            }
        });
    });
    //--------------------------------------------\table----------------------------------------------------
});

function create() {
    createRegister(
        '/powerbi_settings/create',
        Lang.get("messagesClient.global.create_record"),
        "/powerbi_settings",
        null
    );
}

function clickEdit(value) {
    $(location).attr("href", "/powerbi_settings/edit/" + value);
}

function edit() {
    editRegister(
        '/powerbi_settings/update/',
        Lang.get("messagesClient.global.edit_record"),
        "/powerbi_settings",
        null
    );
}

function clickDelete(value) {
    console.log('paso');
    deleteRegister(
        "/powerbi_settings/delete/" + value,
        Lang.get("messagesClient.global.delete_record"),
        "/powerbi_settings"
    );
}