mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
parent
bc4378105b
commit
3db8adea77
@ -122,6 +122,10 @@ 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) {
|
||||
|
@ -122,6 +122,7 @@ 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;
|
||||
});
|
||||
|
||||
|
@ -116,6 +116,7 @@ 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;
|
||||
});
|
||||
|
||||
|
@ -45,6 +45,13 @@ define(function(require) {
|
||||
var RESOURCE = "VM";
|
||||
var XML_ROOT = "VM";
|
||||
|
||||
setInterval(function() {
|
||||
var tab = $('#' + TAB_ID);
|
||||
if (Sunstone.rightInfoVisible(tab)){
|
||||
$("#vms-tabrefresh_buttons button").click();
|
||||
}
|
||||
}, Config.autorefreshInfo("vms-tab"));
|
||||
|
||||
/*
|
||||
CONSTRUCTOR
|
||||
*/
|
||||
|
@ -115,6 +115,7 @@ 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;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user