From ec7c4e3e4d1f26f2154f752c166e116f4c652eb1 Mon Sep 17 00:00:00 2001 From: Steven Miers Date: Thu, 20 Aug 2015 14:44:50 -0500 Subject: [PATCH] VRFS-3359 : Cleanup --- .../InstrumentSelectorList.js.jsx.coffee | 1 - .../TeacherSetupBasics.js.jsx.coffee | 26 +++++++++---------- 2 files changed, 12 insertions(+), 15 deletions(-) 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()
Instruments Taught - + - +
Music Subjects Taught - +
Genres Taught - +
Languages Spoken - +