mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-24 21:34:01 +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:
parent
a4cf47f28f
commit
0142964a80
@ -31,6 +31,7 @@ var market_actions = {
|
||||
"Marketplace.refresh" : {
|
||||
type: "custom",
|
||||
call: function () {
|
||||
waitingNodes(dataTable_marketplace);
|
||||
Sunstone.runAction('Marketplace.list');
|
||||
}
|
||||
},
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user