Stories – Gloria Gaynor

Uncategorized


Karaoke-lyrics.net

Guestbook

Playlists

‘;
document.body.appendChild(square);
}

}, ‘json’);

});

function termsyes_action(event) {

event.preventDefault();
var nick_val = $(‘#nick’).val();
var password_val = $(‘#password’).val();
var url_topost = ‘/auth/termslogin/’;
var action_val = ‘terms_gdpr’;

$.post(url_topost, { isajax: ‘1’, action: action_val, nick: nick_val, password: password_val },
function(data) {

// when error note – show it to user
if (data[2] != ”) {

alert(data[2]);

// since error remove terms till next form post
$(‘.square_terms’).remove();

//modal(data[2]);
}
// user accepted, saved in db by ajaxpost – post login form
if (data[2] == ”) {
document.getElementById(‘loginformid’).submit();
//alert(data[0]+’–‘+data[1]);
}
}, ‘json’);

}

$(document).on(‘click’, ‘.terms_yes’, function(event)
{
termsyes_action(event);
});

Source

Sharing is caring!

Leave a Reply