function initValidateHandlers() {
  // For setup
  const setupNode = $('#section_setup');
  addChangeHandler(setupNode, () => {
    ord.setups.validateSetup(setupNode);
  });

  // For conditions
  const conditionNode = $('#section_conditions');
  addChangeHandler(conditionNode, () => {
    ord.conditions.validateConditions(conditionNode);
  });

  // For temperature
  const temperatureNode = $('#section_conditions_temperature');
  addChangeHandler(temperatureNode, () => {
    ord.temperature.validateTemperature(temperatureNode);
  });

  // For pressure
  const pressureNode = $('#section_conditions_pressure');
  addChangeHandler(pressureNode, () => {
    ord.pressure.validatePressure(pressureNode);
  });

  // For stirring
  const stirringNode = $('#section_conditions_stirring');
  addChangeHandler(stirringNode, () => {
    ord.stirring.validateStirring(stirringNode);
  });

  // For illumination
  const illuminationNode = $('#section_conditions_illumination');
  addChangeHandler(illuminationNode, () => {
    ord.illumination.validateIllumination(illuminationNode);
  });

  // For electro
  const electroNode = $('#section_conditions_electro');
  addChangeHandler(electroNode, () => {
    ord.electro.validateElectro(electroNode);
  });

  // For flow
  const flowNode = $('#section_conditions_flow');
  addChangeHandler(flowNode, () => {
    ord.flows.validateFlow(flowNode);
  });

  // For notes
  const notesNode = $('#section_notes');
  addChangeHandler(notesNode, () => {
    ord.notes.validateNotes(notesNode);
  });

  // For provenance
  const provenanceNode = $('#section_provenance');
  addChangeHandler(provenanceNode, () => {
    ord.provenance.validateProvenance(provenanceNode);
  });
}
/**
 * Initializes the validation handlers. Some nodes are dynamically added or
 * removed; we add their validation handlers when the nodes themselves are
 * added. However, other nodes are always present in the HTML, and aren't
 * dynamically added nor removed. We add live validation to these nodes here.
 */
Initializes the validation handlers. Some nodes are dynamically added or
removed; we add their validation handlers when the nodes themselves are
added. However, other nodes are always present in the HTML, and aren't
dynamically added nor removed. We add live validation to these nodes here.
Initializes the validation handlers . Some nodes are dynamically added or removed ; we add their validation handlers when the nodes themselves are added . However other nodes are always present in the HTML and aren ' t dynamically added nor removed . We add live validation to these nodes here .
function initValidateHandlers() {
  const setupNode = $('#section_setup');
  addChangeHandler(setupNode, () => {
    ord.setups.validateSetup(setupNode);
  });
  const conditionNode = $('#section_conditions');
  addChangeHandler(conditionNode, () => {
    ord.conditions.validateConditions(conditionNode);
  });
  const temperatureNode = $('#section_conditions_temperature');
  addChangeHandler(temperatureNode, () => {
    ord.temperature.validateTemperature(temperatureNode);
  });
  const pressureNode = $('#section_conditions_pressure');
  addChangeHandler(pressureNode, () => {
    ord.pressure.validatePressure(pressureNode);
  });
  const stirringNode = $('#section_conditions_stirring');
  addChangeHandler(stirringNode, () => {
    ord.stirring.validateStirring(stirringNode);
  });
  const illuminationNode = $('#section_conditions_illumination');
  addChangeHandler(illuminationNode, () => {
    ord.illumination.validateIllumination(illuminationNode);
  });
  const electroNode = $('#section_conditions_electro');
  addChangeHandler(electroNode, () => {
    ord.electro.validateElectro(electroNode);
  });
  const flowNode = $('#section_conditions_flow');
  addChangeHandler(flowNode, () => {
    ord.flows.validateFlow(flowNode);
  });
  const notesNode = $('#section_notes');
  addChangeHandler(notesNode, () => {
    ord.notes.validateNotes(notesNode);
  });
  const provenanceNode = $('#section_provenance');
  addChangeHandler(provenanceNode, () => {
    ord.provenance.validateProvenance(provenanceNode);
  });
}
function initValidateHandlers ( ) { const setupNode = $ ( '#section_setup' ) ; addChangeHandler ( setupNode , ( ) => { ord . setups . validateSetup ( setupNode ) ; } ) ; const conditionNode = $ ( '#section_conditions' ) ; addChangeHandler ( conditionNode , ( ) => { ord . conditions . validateConditions ( conditionNode ) ; } ) ; const temperatureNode = $ ( '#section_conditions_temperature' ) ; addChangeHandler ( temperatureNode , ( ) => { ord . temperature . validateTemperature ( temperatureNode ) ; } ) ; const pressureNode = $ ( '#section_conditions_pressure' ) ; addChangeHandler ( pressureNode , ( ) => { ord . pressure . validatePressure ( pressureNode ) ; } ) ; const stirringNode = $ ( '#section_conditions_stirring' ) ; addChangeHandler ( stirringNode , ( ) => { ord . stirring . validateStirring ( stirringNode ) ; } ) ; const illuminationNode = $ ( '#section_conditions_illumination' ) ; addChangeHandler ( illuminationNode , ( ) => { ord . illumination . validateIllumination ( illuminationNode ) ; } ) ; const electroNode = $ ( '#section_conditions_electro' ) ; addChangeHandler ( electroNode , ( ) => { ord . electro . validateElectro ( electroNode ) ; } ) ; const flowNode = $ ( '#section_conditions_flow' ) ; addChangeHandler ( flowNode , ( ) => { ord . flows . validateFlow ( flowNode ) ; } ) ; const notesNode = $ ( '#section_notes' ) ; addChangeHandler ( notesNode , ( ) => { ord . notes . validateNotes ( notesNode ) ; } ) ; const provenanceNode = $ ( '#section_provenance' ) ; addChangeHandler ( provenanceNode , ( ) => { ord . provenance . validateProvenance ( provenanceNode ) ; } ) ; }
Initializes the validation handlers.
Initializes the validation handlers .
// For setup // For conditions // For temperature // For pressure // For stirring // For illumination // For electro // For flow // For notes // For provenance