mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #3748: Add pre and post updateView events
This commit is contained in:
parent
109ae9b9c7
commit
329a6e75b6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user