# HG changeset patch # User souliane # Date 1400194389 -7200 # Node ID 35048cafb18d067f094a50696c6f1201ec64f13e # Parent c4c14480715a8d54dbd9bbe0a6cf31b325413e98 tools (xmlui): to click a button in a "param" form will automatically submit the parameters of the same category diff -r c4c14480715a -r 35048cafb18d src/tools/xml_tools.py --- a/src/tools/xml_tools.py Wed May 07 18:16:15 2014 +0200 +++ b/src/tools/xml_tools.py Fri May 16 00:53:09 2014 +0200 @@ -236,6 +236,10 @@ 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)