1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

feature #3077: Check if no elements are added to the data table

This commit is contained in:
Daniel Molina 2014-08-13 19:01:09 +02:00
parent 1021e37021
commit 1c7f6fa481

View File

@ -1293,7 +1293,10 @@ function updateView(item_list,dataTable){
var prev_start = dTable_settings._iDisplayStart;
dataTable.fnClearTable(false);
dataTable.fnAddData(item_list, false);
if (item_list.length > 0) {
dataTable.fnAddData(item_list, false);
}
var new_start = prev_start;