Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(serverData && serverData.offerResponse &&
- (serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.LOST
- || serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.UNKNOWN))
- {
- window.location.href = CONFIG.WEBROOTURL
- }
- else if(serverData && serverData.offerResponse &&
- (serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.NEW
- || serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.EXPIRED))
- {
- dynamicSteps = GetDynamicSteps([
- StepNames.Home,
- StepNames.CheckYourQuote,
- StepNames.VehicleDetails,
- StepNames.SignIn,
- StepNames.PersonalDetails,
- StepNames.YourOffer,
- StepNames.OfferAccepted,
- StepNames.Final
- ])
- }
- ...
- else if(serverData && serverData.offerResponse
- && (serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.ACCEPTED
- || serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.SOLD
- || serverData.offerResponse.offerStatus === CONFIG.QUOTESTATUS.MAYBE
- ))
- {
- dynamicSteps = GetDynamicSteps([
- StepNames.Home,
- StepNames.SignIn,
- StepNames.YourOffer,
- StepNames.OfferAccepted,
- StepNames.Final
- ]);
- }
- else{
- dynamicSteps = GetDynamicSteps([
- StepNames.Home,
- StepNames.SelectCar,
- StepNames.VehicleDetails,
- StepNames.SignIn,
- StepNames.PersonalDetails,
- StepNames.YourOffer,
- StepNames.OfferAccepted,
- StepNames.Final
- ])
- }
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement