body.on('submit', '.form-editor', function(e){
e.preventDefault();
let submit = true;
if ( submit ) {
$.ajax({
url: "
https://login.ngym.ru/api/client/profile",
data: $(this).serialize(),
method: "POST",
dataType: 'json',
headers: { "Access-Control-Allow-Origin": "*" },
success: function ( data ) {
alert('форма отправленна')
}
});
}
})