HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/www/pm/app/Views/todo/helper_js.php
<script type="text/javascript">
    $(document).ready(function () {
        $("#todo-inline-form").appForm({
            isModal: false,
            onSuccess: function (result) {
                $("#todo-title").val("");
                $("#todo-table").appTable({newData: result.data, dataId: result.id});
                appAlert.success(result.message, {duration: 5000});
            }
        });

        $('body').on('click', '[data-act=update-todo-status-checkbox]', function () {
            $(this).find("span").removeClass("checkbox-checked");
            $(this).find("span").addClass("inline-loader");
            $.ajax({
                url: '<?php echo_uri("todo/save_status") ?>',
                type: 'POST',
                dataType: 'json',
                data: {id: $(this).attr('data-id'), status: $(this).attr('data-value')},
                success: function (response) {
                    if (response.success) {
                        $("#todo-table").appTable({newData: response.data, dataId: response.id});
                    }
                }
            });
        });
    });
</script>