tools (xmlui): to click a button in a "param" form will automatically submit the parameters of the same category

This commit is contained in:
souliane 2014-05-16 00:53:09 +02:00
commit 2a74cd0c06

View file

@ -236,6 +236,10 @@ def paramsXML2XMLUI(xml):
if callback_id:
widget_kwargs['callback_id'] = callback_id
others = ["%s%s%s" % (category_name, SAT_PARAM_SEPARATOR, other.getAttribute('name'))
for other in category.getElementsByTagName('param')
if other.getAttribute('type') != 'button']
widget_kwargs['fields_back'] = others
widget_kwargs['name'] = "%s%s%s" % (category_name, SAT_PARAM_SEPARATOR, param_name)