Commit d45c490b by Alexander Kryklia

plot now not required

parent 9b500a15
......@@ -73,7 +73,9 @@ class GraphicalSliderToolModule(XModule):
plot_div = '<div class="{element_class}_plot" id="{element_id}_plot" \
style="{style}"></div>'
# extract css style from plot
plot_def = re.search(r'\$plot[^\$]*\$', html_string).group()
plot_def = re.search(r'\$plot[^\$]*\$', html_string)
if plot_def:
plot_def = plot_def.group()
style = re.search(r'(?=.*style\=[\"\'](.*)[\"\'])', plot_def)
if style:
style = style.groups()[0]
......
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