diff --git a/src/sunstone/etc/sunstone-views/kvm/admin.yaml b/src/sunstone/etc/sunstone-views/kvm/admin.yaml index 04a0c67354..65714c5713 100644 --- a/src/sunstone/etc/sunstone-views/kvm/admin.yaml +++ b/src/sunstone/etc/sunstone-views/kvm/admin.yaml @@ -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 diff --git a/src/sunstone/etc/sunstone-views/kvm/groupadmin.yaml b/src/sunstone/etc/sunstone-views/kvm/groupadmin.yaml index cf178295a3..0da199eb43 100644 --- a/src/sunstone/etc/sunstone-views/kvm/groupadmin.yaml +++ b/src/sunstone/etc/sunstone-views/kvm/groupadmin.yaml @@ -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 diff --git a/src/sunstone/etc/sunstone-views/kvm/user.yaml b/src/sunstone/etc/sunstone-views/kvm/user.yaml index b004559164..5514556e0d 100644 --- a/src/sunstone/etc/sunstone-views/kvm/user.yaml +++ b/src/sunstone/etc/sunstone-views/kvm/user.yaml @@ -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 diff --git a/src/sunstone/etc/sunstone-views/mixed/admin.yaml b/src/sunstone/etc/sunstone-views/mixed/admin.yaml index df9784a7a6..a0a4a6e471 100644 --- a/src/sunstone/etc/sunstone-views/mixed/admin.yaml +++ b/src/sunstone/etc/sunstone-views/mixed/admin.yaml @@ -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 diff --git a/src/sunstone/etc/sunstone-views/mixed/groupadmin.yaml b/src/sunstone/etc/sunstone-views/mixed/groupadmin.yaml index cf178295a3..0da199eb43 100644 --- a/src/sunstone/etc/sunstone-views/mixed/groupadmin.yaml +++ b/src/sunstone/etc/sunstone-views/mixed/groupadmin.yaml @@ -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 diff --git a/src/sunstone/etc/sunstone-views/mixed/user.yaml b/src/sunstone/etc/sunstone-views/mixed/user.yaml index b004559164..5514556e0d 100644 --- a/src/sunstone/etc/sunstone-views/mixed/user.yaml +++ b/src/sunstone/etc/sunstone-views/mixed/user.yaml @@ -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 diff --git a/src/sunstone/etc/sunstone-views/vcenter/admin.yaml b/src/sunstone/etc/sunstone-views/vcenter/admin.yaml index e4c6dd1ffd..1413d6dbdf 100644 --- a/src/sunstone/etc/sunstone-views/vcenter/admin.yaml +++ b/src/sunstone/etc/sunstone-views/vcenter/admin.yaml @@ -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 diff --git a/src/sunstone/etc/sunstone-views/vcenter/groupadmin.yaml b/src/sunstone/etc/sunstone-views/vcenter/groupadmin.yaml index 8844db464a..54c0bd8ab4 100644 --- a/src/sunstone/etc/sunstone-views/vcenter/groupadmin.yaml +++ b/src/sunstone/etc/sunstone-views/vcenter/groupadmin.yaml @@ -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 diff --git a/src/sunstone/etc/sunstone-views/vcenter/user.yaml b/src/sunstone/etc/sunstone-views/vcenter/user.yaml index b004559164..5514556e0d 100644 --- a/src/sunstone/etc/sunstone-views/vcenter/user.yaml +++ b/src/sunstone/etc/sunstone-views/vcenter/user.yaml @@ -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 diff --git a/src/sunstone/public/app/sunstone-config.js b/src/sunstone/public/app/sunstone-config.js index ecc21b1aef..d975bb749c 100644 --- a/src/sunstone/public/app/sunstone-config.js +++ b/src/sunstone/public/app/sunstone-config.js @@ -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) { diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index 01fc6e5977..2ffde83410 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -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, diff --git a/src/sunstone/public/app/tabs/images-tab/form-panels/import.js b/src/sunstone/public/app/tabs/images-tab/form-panels/import.js index 6cb8136896..1244f5ac1b 100644 --- a/src/sunstone/public/app/tabs/images-tab/form-panels/import.js +++ b/src/sunstone/public/app/tabs/images-tab/form-panels/import.js @@ -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; }); diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/import.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/import.js index afaaa3d268..7dff1a6504 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/import.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/import.js @@ -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; }); diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/info.js b/src/sunstone/public/app/tabs/vms-tab/panels/info.js index 431b301fde..e5fcf9ff4c 100644 --- a/src/sunstone/public/app/tabs/vms-tab/panels/info.js +++ b/src/sunstone/public/app/tabs/vms-tab/panels/info.js @@ -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); - } }); diff --git a/src/sunstone/public/app/tabs/vnets-tab/form-panels/import.js b/src/sunstone/public/app/tabs/vnets-tab/form-panels/import.js index 985913c81b..7cb4a0d19b 100644 --- a/src/sunstone/public/app/tabs/vnets-tab/form-panels/import.js +++ b/src/sunstone/public/app/tabs/vnets-tab/form-panels/import.js @@ -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; });