function WizardScoreEE() { WizardScore.call(this); } WizardScoreEE.prototype = Object.create(WizardScore.prototype); WizardScoreEE.prototype.constructor = WizardScoreEE; WizardScoreEE.prototype.GetStepContainersArray = function() { return ["user_base_info", "user_english_language_test_info", "user_english_language_common_info", "user_english_language_exact_info", "user_french_language_test_info", "user_french_language_common_info", "user_french_language_exact_info", "user_has_work_experience_info", "user_work_experience_info", "user_has_work_experience_canada_info", "user_work_experience_canada_info", "user_has_study_experience_canada_info", "user_study_experience_canada_info", "user_has_spouse_info", "user_spouse_education_info", "user_has_work_experience_canada_info_spouse", "user_work_experience_canada_info_spouse", "user_english_language_spouse_test_info", "user_english_language_spouse_common_info", "user_english_language_spouse_exact_info", "user_french_language_spouse_test_info", "user_french_language_spouse_common_info", "user_french_language_spouse_exact_info", "user_has_canada_coq_info", "has_canada_nomination_info", "user_has_job_offer_info", "has_siblings_in_canada_info"]; } WizardScoreEE.prototype.IsStepVisible = function(step) { let result = true; if (step == "user_work_experience_info") result &= (IsButtonGroupCheckBoxOn("#has_work_experience")); if (step == "user_work_experience_canada_info") result &= (IsButtonGroupCheckBoxOn("#has_work_experience_canada")); if (step == "user_study_experience_canada_info") result &= (IsButtonGroupCheckBoxOn("#has_study_experience_canada")); if (step == "user_work_experience_canada_info_spouse") result &= (IsButtonGroupCheckBoxOn("#has_work_experience_canada_spouse")); result &= WizardScore.prototype.IsStepVisible.call(this, step); return result; } WizardScoreEE.prototype.LoadControlsFromJSON = function(json) { WizardScore.prototype.LoadControlsFromJSON.call(this, json); SetButtonGroupCheckBoxValue("#has_work_experience", (json.user_work_exp > 0)); this.setSelectBoxValueByMaximumValue("#user_work_exp", json.user_work_exp); SetButtonGroupCheckBoxValue("#has_work_experience_canada", (json.user_work_exp_canada > 0)); this.setSelectBoxValueByMaximumValue("#user_work_exp_canada", json.user_work_exp_canada); SetButtonGroupCheckBoxValue("#has_study_experience_canada", (json.user_study_exp_canada > 0)); this.setSelectBoxValueByMaximumValue("#user_study_exp_canada", json.user_study_exp_canada); SetButtonGroupCheckBoxValue("#has_work_experience_canada_spouse", (json.user_work_exp_canada_spouse > 0)); this.setSelectBoxValueByMaximumValue("#user_work_exp_canada_spouse", json.user_work_exp_canada_spouse); } WizardScoreEE.prototype.ChangeInputsEnabledState = function(is_disabled) { $("#user_work_exp").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_work_experience"))); $("#user_work_exp_canada").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_work_experience_canada"))); $("#user_study_exp_canada").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_study_experience_canada"))); $("#user_work_exp_canada_spouse").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_work_experience_canada_spouse"))); WizardScore.prototype.ChangeInputsEnabledState.call(this, is_disabled); }