1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

Revert "F #2410: VM autorefresh (#2461)"

This reverts commit 1bcd3832bd.
This reverts commit 9e68ee24d7.
This commit is contained in:
Ruben S. Montero 2018-11-30 11:17:23 +01:00
parent dba279a963
commit 83256b1bec
15 changed files with 2 additions and 31 deletions

View File

@ -406,7 +406,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -405,7 +405,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -398,7 +398,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -406,7 +406,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -405,7 +405,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -398,7 +398,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -404,7 +404,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -405,7 +405,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -398,7 +398,6 @@ tabs:
VM.unlock: true
VM.edit_labels: true
VM.menu_labels: true
autorefresh_info: 5000 # ms
oneflow-services-tab:
panel_tabs:
service_info_tab: true

View File

@ -130,10 +130,6 @@ define(function(require) {
return _config['user_config']["table_order"];
},
"autorefreshInfo": function(tabName) {
return _config['view']['tabs'][tabName]['autorefresh_info'] || 10000;
},
"provision": {
"dashboard": {
"isEnabled": function(widget) {

View File

@ -1185,11 +1185,7 @@ define(function(require) {
};
var _rightInfoVisible = function(context) {
return $(".sunstone-info", context).is(":visible")
};
var _infoTabVisible = function(context, tab) {
return $(tab, $(".sunstone-info", context)).is(":visible")
return $(".sunstone-info", context).is(":visible");
};
var _rightListVisible = function(context) {
@ -1289,7 +1285,6 @@ define(function(require) {
"rightInfoVisible": _rightInfoVisible,
"infoTabVisible": _infoTabVisible,
"rightListVisible": _rightListVisible,
"rightInfoResourceId": _rightInfoResourceId,

View File

@ -122,7 +122,6 @@ define(function(require) {
$(context).off("click", "#import_vcenter_images");
$(context).on("click", "#import_vcenter_images", function(){
that.vCenterImages.import(context);
$("#images-tabrefresh_buttons button").click();
return false;
});

View File

@ -116,7 +116,6 @@ define(function(require) {
$(context).off("click", "#import_vcenter_templates");
$(context).on("click", "#import_vcenter_templates", function(){
that.vCenterTemplates.import(context);
$("#templates-tabrefresh_buttons button").click();
return false;
});

View File

@ -27,8 +27,8 @@ define(function(require) {
var TemplateTableVcenter = require("utils/panel/template-table");
var OpenNebula = require("opennebula");
var Sunstone = require("sunstone");
var Navigation = require("utils/navigation");
var Config = require("sunstone-config");
var Navigation = require("utils/navigation");
/*
TEMPLATES
@ -45,13 +45,6 @@ define(function(require) {
var RESOURCE = "VM";
var XML_ROOT = "VM";
setInterval(function() {
var tab = $('#' + TAB_ID);
if (Sunstone.infoTabVisible(tab, "#vm_info_tab")){
$("#vms-tabrefresh_buttons button").click();
}
}, Config.autorefreshInfo("vms-tab"));
/*
CONSTRUCTOR
*/
@ -174,6 +167,5 @@ define(function(require) {
TemplateTable.setup(strippedTemplate, RESOURCE, this.element.ID, context, unshownValues, strippedTemplateVcenter);
TemplateTableVcenter.setup(strippedTemplateVcenter, RESOURCE, this.element.ID, context, unshownValues, strippedTemplate);
}
});

View File

@ -115,7 +115,6 @@ define(function(require) {
$(context).off("click", "#import_vcenter_networks");
$(context).on("click", "#import_vcenter_networks", function(){
that.vCenterNetworks.import(context);
$("#vnets-tabrefresh_buttons button").click();
return false;
});