diff --git a/web/app/assets/javascripts/react-components/InstrumentSelectorList.js.jsx.coffee b/web/app/assets/javascripts/react-components/InstrumentSelectorList.js.jsx.coffee index d05f7bee9..6b9223f15 100644 --- a/web/app/assets/javascripts/react-components/InstrumentSelectorList.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/InstrumentSelectorList.js.jsx.coffee @@ -32,7 +32,6 @@ logger = context.JK.logger for instrument in @instruments nm = "check_#{instrument.id}" - checkedStr = if @isChecked(instrument.id) then "checked" else "" instrument_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 18974792a..4c5c52edb 100644 --- a/web/app/assets/javascripts/react-components/TeacherSetupBasics.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/TeacherSetupBasics.js.jsx.coffee @@ -17,9 +17,9 @@ rest = window.JK.Rest() "basics" onTeacherStateChanged: (changes) -> - $root = jQuery(this.getDOMNode()) + $root = jQuery(this.getDOMNode()) unless this.handleErrors(changes) - teacher = changes.teacher + teacher = changes.teacher this.setState({ #validate_basics: true, instruments: teacher.instruments @@ -29,11 +29,9 @@ rest = window.JK.Rest() $root = jQuery(this.getDOMNode()) this.setState({ - }); + }); - handleListChange: (listName, selectedItems)-> - "#{listName}": selectedItems - }) + handleListChange: (listName, selectedItems)-> this.setState({ "#{listName}": selectedItems }); @@ -41,7 +39,7 @@ rest = window.JK.Rest() navDestination: (instructions) -> navTo=null - if instructions? + if instructions? if instructions.direction=="cancel" navTo = @teacherSetupSource() else if instructions.direction=="back" @@ -51,11 +49,11 @@ rest = window.JK.Rest() navTo - handleNav: (e) -> + handleNav: (e) -> navTo = this.navDestination(e) teacherActions.change.trigger(this.state, {navTo: navTo}) - render: () -> + render: () -> instrumentsTaughtCheckboxes = [] #instrumentsTaughtCheckboxes.push(``) @@ -70,27 +68,27 @@ rest = window.JK.Rest()