Manage tree_state attribute
issue4028 review10391003
This commit is contained in:
1 parent
0f2c3a11ca
commit
00a44f9318
2 files changed
+57
-17
No files matched your search
+8
-5
@@ -96,6 +96,7 @@
|
||||
var top_node = xml.children()[0];
|
||||
this.keyword_open = top_node.getAttribute('keyword_open');
|
||||
this.editable = top_node.getAttribute('editable');
|
||||
this.attributes = top_node.attributes;
|
||||
|
||||
// Columns
|
||||
this.columns = [];
|
||||
@@ -241,13 +242,15 @@
|
||||
return buttons;
|
||||
},
|
||||
display: function(selected, expanded) {
|
||||
selected = selected || this.get_selected_paths();
|
||||
expanded = expanded || [];
|
||||
var current_record = this.screen.current_record;
|
||||
if (current_record && !Sao.common.contains(selected,
|
||||
[[current_record.id]])) {
|
||||
selected = [[current_record.id]];
|
||||
if (!selected) {
|
||||
selected = this.get_selected_paths();
|
||||
if (current_record && !Sao.common.contains(selected,
|
||||
[[current_record.id]])) {
|
||||
selected = [[current_record.id]];
|
||||
}
|
||||
}
|
||||
expanded = expanded || [];
|
||||
|
||||
if (this.screen.group.length != this.rows.length) {
|
||||
this.construct(selected, expanded);
|
||||
|
||||
Reference in new issue
Block a user