mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
(cherry picked from commit 861a63356ffc723f845095b18caf9e52150b09b2)
This commit is contained in:
parent
91ef3d0fe9
commit
eebf4d30a6
@ -931,7 +931,9 @@ define(function(require) {
|
||||
};
|
||||
|
||||
var _autorefresh = function(tabName, info, contextTabId, context) {
|
||||
_insertPanels(tabName, info, contextTabId, context, true);
|
||||
// This code is disabled to forbid the autorefresh feature
|
||||
//_insertPanels(tabName, info, contextTabId, context, true);
|
||||
_insertPanels(tabName, info, contextTabId, context, false);
|
||||
};
|
||||
|
||||
|
||||
|
@ -45,6 +45,11 @@ define(function (require) {
|
||||
};
|
||||
|
||||
var _start = function (fireedgeToken="") {
|
||||
/*
|
||||
|
||||
// This code is disabled to forbid the autorefresh feature
|
||||
|
||||
|
||||
connection = STATUS.PROCESSING;
|
||||
|
||||
if (sunstone_fireedge_active && fireedgeToken != "" ){
|
||||
@ -97,36 +102,36 @@ define(function (require) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
/*
|
||||
// this code recreate the datatable for VM and HOST this call foundation()
|
||||
|
||||
var response = {};
|
||||
response[object] = event_data.HOOK_MESSAGE[object];
|
||||
var request = {
|
||||
"request": {
|
||||
"data": [response[object].ID],
|
||||
"method": "show",
|
||||
"resource": object
|
||||
}
|
||||
};
|
||||
// update VM and HOST
|
||||
var tab = $("#" + tab_id);
|
||||
if(
|
||||
Sunstone.getDataTable(tab_id) &&
|
||||
Sunstone.getDataTable(tab_id).updateElement &&
|
||||
typeof Sunstone.getDataTable(tab_id).updateElement === "function"
|
||||
){
|
||||
Sunstone.getDataTable(tab_id).updateElement(request, response);
|
||||
// this code recreate the datatable for VM and HOST this call foundation()
|
||||
|
||||
var response = {};
|
||||
response[object] = event_data.HOOK_MESSAGE[object];
|
||||
var request = {
|
||||
"request": {
|
||||
"data": [response[object].ID],
|
||||
"method": "show",
|
||||
"resource": object
|
||||
}
|
||||
if (Sunstone.rightInfoVisible(tab) && event_data.HOOK_MESSAGE.RESOURCE_ID == Sunstone.rightInfoResourceId(tab)) {
|
||||
callFunction(response);
|
||||
}
|
||||
if (event_data.HOOK_MESSAGE.STATE == "DONE"){
|
||||
Sunstone.getDataTable(tab_id).waitingNodes();
|
||||
Sunstone.runAction(object + ".list", {force: true});
|
||||
}
|
||||
*/
|
||||
}
|
||||
};
|
||||
// update VM and HOST
|
||||
var tab = $("#" + tab_id);
|
||||
if(
|
||||
Sunstone.getDataTable(tab_id) &&
|
||||
Sunstone.getDataTable(tab_id).updateElement &&
|
||||
typeof Sunstone.getDataTable(tab_id).updateElement === "function"
|
||||
){
|
||||
Sunstone.getDataTable(tab_id).updateElement(request, response);
|
||||
}
|
||||
if (Sunstone.rightInfoVisible(tab) && event_data.HOOK_MESSAGE.RESOURCE_ID == Sunstone.rightInfoResourceId(tab)) {
|
||||
callFunction(response);
|
||||
}
|
||||
if (event_data.HOOK_MESSAGE.STATE == "DONE"){
|
||||
Sunstone.getDataTable(tab_id).waitingNodes();
|
||||
Sunstone.runAction(object + ".list", {force: true});
|
||||
}
|
||||
|
||||
} */
|
||||
});
|
||||
|
||||
// Close Socket when close browser or tab.
|
||||
|
Loading…
x
Reference in New Issue
Block a user