changeset b2b0f9e9fef3 in sao:5.8
details: https://hg.tryton.org/sao?cmd=changeset;node=b2b0f9e9fef3
description:
Make symbol the last prefix and the first suffix
issue9840
review331301002
(grafted from c876bd713f966b0b3528fb296aefe498c8c8dae8)
diffstat:
src/view/tree.js | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r ab0186469178 -r b2b0f9e9fef3 src/view/tree.js
--- a/src/view/tree.js Mon Nov 23 23:39:44 2020 +0100
+++ b/src/view/tree.js Mon Nov 23 23:41:16 2020 +0100
@@ -69,6 +69,10 @@
this.view.widgets[name].push(column);
var prefixes = [], suffixes = [];
+ if ('symbol' in attributes) {
+ column.suffixes.push(
+ new Sao.View.Tree.Symbol(attributes, 1));
+ }
if (~['url', 'email', 'callto', 'sip'
].indexOf(attributes.widget)) {
column.prefixes.push(
@@ -77,12 +81,6 @@
if ('icon' in attributes) {
column.prefixes.push(new Sao.View.Tree.Affix(attributes));
}
- if ('symbol' in attributes) {
- column.prefixes.push(
- new Sao.View.Tree.Symbol(attributes, 0));
- column.suffixes.push(
- new Sao.View.Tree.Symbol(attributes, 1));
- }
var affix, affix_attributes;
var affixes = node.childNodes;
for (var i = 0; i < affixes.length; i++) {
@@ -103,6 +101,10 @@
}
list.push(new Sao.View.Tree.Affix(affix_attributes));
}
+ if ('symbol' in attributes) {
+ column.prefixes.push(
+ new Sao.View.Tree.Symbol(attributes, 0));
+ }
if (!this.view.attributes.sequence &&
!this.view.children_field &&
this.field_attrs[name].sortable !== false){