1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

waitingNodes() replaced all input in the table with spinners, even if those inputs where invisible. This caused lagging problems with > 1000 resources. Now it only changes visible inputs.

Added waitingNodes() to marketplace refresh
(cherry picked from commit adc678afe033989e54136e0b0a5d51e23c6b9734)
This commit is contained in:
Hector Sanjuan 2012-06-27 12:29:00 +02:00 committed by Ruben S. Montero
parent a4cf47f28f
commit 0142964a80
2 changed files with 2 additions and 4 deletions

View File

@ -31,6 +31,7 @@ var market_actions = {
"Marketplace.refresh" : {
type: "custom",
call: function () {
waitingNodes(dataTable_marketplace);
Sunstone.runAction('Marketplace.list');
}
},

View File

@ -409,10 +409,7 @@ function onError(request,error_json) {
//Replaces the checkboxes of a datatable with a ajax-loading spinner.
//Used when refreshing elements of a datatable.
function waitingNodes(dataTable){
var nodes = dataTable.fnGetData();
for (var i=0;i<nodes.length;i++){
dataTable.fnUpdate(spinner,i,0);
};
$('tr input.check_item:visible',dataTable).replaceWith(spinner);
}
function getUserName(uid){