diff --git a/web/app/assets/javascripts/react-components/CheckBoxList.js.jsx.coffee b/web/app/assets/javascripts/react-components/CheckBoxList.js.jsx.coffee index b03ead5f8..6b2d92b77 100644 --- a/web/app/assets/javascripts/react-components/CheckBoxList.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/CheckBoxList.js.jsx.coffee @@ -28,7 +28,7 @@ logger = context.JK.logger for object in this.props.sourceObjects nm = "check_#{object.id}" checkedStr = if @isChecked(object.id) then "checked" else "" - object_options.push `
` + object_options.push `
` `
diff --git a/web/app/assets/javascripts/react-components/TeacherSetupBasics.js.jsx.coffee b/web/app/assets/javascripts/react-components/TeacherSetupBasics.js.jsx.coffee index d301de3fb..af0385ac9 100644 --- a/web/app/assets/javascripts/react-components/TeacherSetupBasics.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/TeacherSetupBasics.js.jsx.coffee @@ -56,10 +56,7 @@ rest = window.JK.Rest() navTo = this.navDestination(e) teacherActions.change.trigger(this.state, {navTo: navTo}) - render: () -> - instrumentsTaughtCheckboxes = [] - #instrumentsTaughtCheckboxes.push(``) - + render: () -> # Render the following: # Instruments # Subjects diff --git a/web/app/assets/javascripts/react-components/TeacherSetupIntroduction.js.jsx.coffee b/web/app/assets/javascripts/react-components/TeacherSetupIntroduction.js.jsx.coffee index 6d50ec431..034aa7972 100644 --- a/web/app/assets/javascripts/react-components/TeacherSetupIntroduction.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/TeacherSetupIntroduction.js.jsx.coffee @@ -21,7 +21,6 @@ rest = window.JK.Rest() logger.debug("onTeacherIntroStateChanged", changes, changes.errors?, changes.errors) unless this.handleErrors(changes) teacher = changes.teacher - logger.debug("@teacher", teacher) this.setState({ biography: teacher.biography, introductory_video: teacher.introductory_video, @@ -30,56 +29,45 @@ rest = window.JK.Rest() validate_introduction: true }) - captureFormState: (changes) -> - $root = jQuery(this.getDOMNode()) - this.setState({ - biography: $root.find(".teacher-biography").val(), - introductory_video: $root.find(".teacher-introductory-video").val(), - years_teaching: $root.find(".years-teaching-experience").val(), - years_playing: $root.find(".years-playing-experience").val() - }); - logger.debug("capturedFormState", this.state, changes) + handleTextChange: (e) -> + this.setState({"#{e.target.name}": e.target.value}) navDestination: (instructions) -> navTo=null if instructions? - logger.debug("handling instructions", instructions) if instructions.direction=="cancel" || instructions.direction=="back" navTo = @teacherSetupSource() else if instructions.direction=="next" - logger.debug("redireing to basics") navTo = @teacherSetupDestination('basics') navTo handleNav: (e) -> - logger.debug("handleNav #{this.screenName()}: ", this.state, this, e) navTo = this.navDestination(e) teacherActions.change.trigger(this.state, {navTo: navTo}) render: () -> - logger.debug("RENDERING TeacherSetupIntroduction", this.props, this.state) `
- -