Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var NewUserReception = {
- checkName: function (a) {
- var b = {
- name: a
- };
- new Ajax.Request("/new-user-reception/check-name", {
- parameters: b,
- onSuccess: function (c) {
- var d = c.responseJSON;
- FlashExternalInterface.clientElement.newUserReceptionCheckNameResponse(a, d.code, d.validationResult || [], d.suggestions)
- },
- onFailure: function (c) {
- FlashExternalInterface.clientElement.newUserReceptionCheckNameFailed(a)
- }
- })
- },
- claimName: function (b, a) {
- var c = {
- name: b,
- isFemale: a
- };
- new Ajax.Request("/new-user-reception/claim-name", {
- parameters: c,
- onSuccess: function (d) {
- var e = d.responseJSON;
- FlashExternalInterface.clientElement.newUserReceptionClaimNameResponse(e.code, e.validationResult, e.suggestions)
- },
- onFailure: function (d) {
- FlashExternalInterface.clientElement.newUserReceptionClaimNameFailed(b)
- }
- })
- },
- logStep: function (a) {
- var b = {
- step: a
- };
- new Ajax.Request("/new-user-reception/log-step", {
- parameters: b
- })
- },
- saveOutfit: function (b, a) {
- var c = {
- figure: b,
- gender: a
- };
- new Ajax.Request("/new-user-reception/save-outfit", {
- parameters: c,
- onSuccess: function (d) {
- var e = d.responseJSON;
- FlashExternalInterface.clientElement.newUserReceptionSaveOutfitResponse(b, a, e.code)
- },
- onFailure: function (d) {
- FlashExternalInterface.clientElement.newUserReceptionSaveOutfitFailed(b, a)
- }
- })
- },
- chooseRoom: function (b) {
- var a = {
- roomChoice: b
- };
- new Ajax.Request("/new-user-reception/choose-room", {
- parameters: a,
- onSuccess: function (c) {
- var d = c.responseJSON;
- FlashExternalInterface.clientElement.newUserReceptionChooseRoomResponse()
- },
- onFailure: function (c) {
- FlashExternalInterface.clientElement.newUserReceptionChooseRoomFailed()
Advertisement
Add Comment
Please, Sign In to add comment