function WizardScoreFSW() { WizardScore.call(this); } WizardScoreFSW.prototype = Object.create(WizardScore.prototype); WizardScoreFSW.prototype.constructor = WizardScoreFSW; WizardScoreFSW.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_job_offer_info", "user_adaptability"]; } WizardScoreFSW.prototype.IsStepVisible = function(step) { let result = WizardScore.prototype.IsStepVisible.call(this, step); if (step == "user_work_experience_info") result &= (IsButtonGroupCheckBoxOn("#has_work_experience")); return result; } WizardScoreFSW.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); } WizardScoreFSW.prototype.ChangeInputsEnabledState = function(is_disabled) { WizardScore.prototype.ChangeInputsEnabledState.call(this, is_disabled); $("#user_work_exp").attr("disabled", is_disabled && (IsButtonGroupCheckBoxOff("#has_work_experience"))); }