Make symbol the last prefix and the first suffix
issue9840 review331301002
This commit is contained in:
1 parent
18ab0aea88
commit
07732e9d28
1 file changed
+8
-6
+8
-6
@@ -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){
|
||||
|
||||
Reference in new issue
Block a user