diff --git a/src/sunstone/public/app/utils/tab-datatable.js b/src/sunstone/public/app/utils/tab-datatable.js index 06279b8354..9dd205f7cd 100644 --- a/src/sunstone/public/app/utils/tab-datatable.js +++ b/src/sunstone/public/app/utils/tab-datatable.js @@ -339,6 +339,10 @@ define(function(require) { var checked_row_ids = new Array(); var that = this; + if (that.preUpdateView) { + that.preUpdateView(); + } + var row_id_index = this.dataTable.attr("row_id"); if (row_id_index != undefined) { @@ -371,10 +375,6 @@ define(function(require) { this.dataTable.fnClearTable(false); - if (that.onUpdateView) { - that.onUpdateView(); - } - var item_list; if (fromArray) { item_list = list; @@ -434,6 +434,10 @@ define(function(require) { } }); } + + if (that.postUpdateView) { + that.postUpdateView(); + } } //replaces an element with id 'tag' in a dataTable with a new one