From 07732e9d280a3cdf52164974bdff4553e152b079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 Nov 2020 23:41:16 +0100 Subject: [PATCH] Make symbol the last prefix and the first suffix issue9840 review331301002 --- src/view/tree.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/view/tree.js b/src/view/tree.js index 6b16e1f20d..894ffdb47e 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -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){