From 329a6e75b62429cd8cefdbe79386a311488aadbb Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Fri, 12 Jun 2015 18:25:16 +0200 Subject: [PATCH] feature #3748: Add pre and post updateView events --- src/sunstone/public/app/utils/tab-datatable.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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