Wait written and parent reload promises before calling display
issue8623 review265921016
This commit is contained in:
1 parent
4b6176de26
commit
02f0f3c972
1 file changed
+6
-3
+6
-3
@@ -1764,13 +1764,16 @@
|
||||
},
|
||||
reload: function(ids, written) {
|
||||
this.group.reload(ids);
|
||||
var promises = [];
|
||||
if (written) {
|
||||
this.group.written(ids);
|
||||
promises.push(this.group.written(ids));
|
||||
}
|
||||
if (this.group.parent) {
|
||||
this.group.parent.root_parent.reload();
|
||||
promises.push(this.group.parent.root_parent.reload());
|
||||
}
|
||||
return this.display();
|
||||
return jQuery.when.apply(jQuery, promises).then(function() {
|
||||
this.display();
|
||||
}.bind(this));
|
||||
},
|
||||
get_buttons: function() {
|
||||
var selected_records = this.current_view.selected_records;
|
||||
|
||||
Reference in new issue
Block a user