Commit 474b5377 by kimth

Consolidate class names

parent bbfc875f
###
### version of textline.html which does dynamic math
###
<section class="text-input-dynamath textinputdynamath capa_inputtype" id="inputtype_${id}">
<section class="text-input-dynamath capa_inputtype" id="inputtype_${id}">
% if preprocessor is not None:
<div class="textinputdynamath_data" data-preprocessor="${preprocessor['class_name']}"/>
<div class="text-input-dynamath_data" data-preprocessor="${preprocessor['class_name']}"/>
<div class="script_placeholder" data-src="${preprocessor['script_src']}"/>
% endif
......
......@@ -327,12 +327,12 @@ class @Problem
inputtypeSetupMethods:
textinputdynamath: (element) =>
'text-input-dynamath': (element) =>
###
Return: function (eqn) -> eqn that preprocesses the user formula input before
it is fed into MathJax. Return 'false' if no preprocessor specified
###
data = $(element).find('.textinputdynamath_data')
data = $(element).find('.text-input-dynamath_data')
preprocessorClassName = data.data('preprocessor')
preprocessorClass = window[preprocessorClassName]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment