Commit 1c56d1c1 by Alexander Kryklia

removed passed attr in html template

parent e56a0067
......@@ -87,8 +87,7 @@ class ConditionalModule(XModule):
return self.system.render_template('conditional_ajax.html', {
'element_id': self.location.html_id(),
'id': self.id,
'ajax_url': self.system.ajax_url,
'passed': json.dumps(self.is_condition_satisfied())
'ajax_url': self.system.ajax_url
})
def handle_ajax(self, dispatch, post):
......
<div id="conditional_${element_id}" class="conditional-wrapper" data-problem-id="${id}" data-url="${ajax_url}"
data-passed="${passed}"></div>
<div id="conditional_${element_id}" class="conditional-wrapper" data-problem-id="${id}" data-url="${ajax_url}"></div>
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