Commit 961285a4 by Alexander Kryklia

added no_labels flag

parent 604c42eb
...@@ -836,11 +836,15 @@ class DragAndDropInput(InputTypeBase): ...@@ -836,11 +836,15 @@ class DragAndDropInput(InputTypeBase):
dic[attr_name] = Attribute(attr_name, dic[attr_name] = Attribute(attr_name,
default=tag_attrs[tag_type][attr_name]).parse_from_xml(tag) default=tag_attrs[tag_type][attr_name]).parse_from_xml(tag)
if tag_type == 'draggable': if tag_type == 'draggable' and not self.no_labels:
dic['label'] = dic['label'] or dic['id'] dic['label'] = dic['label'] or dic['id']
return dic return dic
# add labels to images:
self.no_labels = Attribute('no_labels',
default="False").parse_from_xml(self.xml)
to_js = dict() to_js = dict()
# image drag and drop onto # image drag and drop onto
......
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