diff --git a/src/screen.js b/src/screen.js index bdf7501661..0f4a77308b 100644 --- a/src/screen.js +++ b/src/screen.js @@ -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;