This commit is contained in:
Alexander Kryklia
2013-01-09 14:06:23 +02:00
parent c2dec3fb9d
commit f157702548

View File

@@ -866,7 +866,8 @@ class DragAndDropInput(InputTypeBase):
self.xml.iterchildren('target')]
# custom background color for labels:
label_bg_color = Attribute('label_bg_color').parse_from_xml(self.xml)
label_bg_color = Attribute('label_bg_color',
default=None).parse_from_xml(self.xml)
if label_bg_color:
to_js['label_bg_color'] = label_bg_color