Consolidate class names

This commit is contained in:
kimth
2012-09-11 18:25:08 -04:00
parent bbfc875ff2
commit 474b5377b9
2 changed files with 4 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
###
### 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

View File

@@ -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]