[REF] barcodes: form view: multiples button for a single trigger

This commit allows multiple button to share the same `barcode_trigger`
attribute. Note that it only makes sense if a single button is displayed
at a time.

Task: 1831245
This commit is contained in:
MOENS Alexandre
2018-06-11 16:18:18 +02:00
committed by Simon Lejeune
parent 8c524b265a
commit defff5f191
@@ -406,8 +406,13 @@ FormRenderer.include({
}
return $.when();
};
var name = node.attrs.name;
if (node.attrs.string) {
name = name + '_' + node.attrs.string;
}
this.trigger_up('activeBarcode', {
name: node.attrs.name,
name: name,
commands: commands
});
},