Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var data = $("#LoginForm").toObject();
- AjaxHelper.DoValidationPost("/Adminisztracio/Login/LoginCheck",
- "LoginForm",
- data,
- loginCallback
- );
- function loginCallback(answer) {
- if (answer.Success) {
- if (typeof answer.WarningMessage !== "undefined" && answer.WarningMessage !== "") {
- alert(answer.WarningMessage);
- }
- loginRedirect();
- }
- }
- function loginRedirect() {
- location.href = "/Adminisztracio/SzerepkorValaszto";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement