Commit 0442b35f by solashirai Committed by Piotr Mitros

removed unnecessary code, fixed initial hint setting

parent ee466418
function CrowdsourceHinterStudio(runtime, element, data){ function CrowdsourceHinterStudio(runtime, element, data){
//:TODO for self, figure out why Mustache isn't working (anonymous funciton (what?) Mustache Not Defined (why?))
//Initialize html with current generic hints, initial hints, and problem element
//var showSettingsUX = $(Mustache.render($('#show_settings_UX').html(), {generic: data.generic, initial: data.initial, problem_element: data.problem_element}));
//$('.crowdsourcehinter_edit_block', element).append(showSettingsUX);
//set text area values to be what is currently in the hinter. to be replaced by above code. //set text area values to be what is currently in the hinter. to be replaced by above code.
$('.csh_initial_hints', element).val(data.initial); $('.csh_initial_hints', element).val(data.initial);
$('.csh_generic_hints', element).val(data.generic); $('.csh_generic_hints', element).val(data.generic);
......
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