mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
development: Doing auto refresh only in info tab
(cherry picked from commit 1bcd3832bdf250f4ce6719e8ed85a0759917c7b3)
This commit is contained in:
parent
b96e5ee927
commit
7bbf3e0b54
@ -1185,7 +1185,11 @@ define(function(require) {
|
||||
};
|
||||
|
||||
var _rightInfoVisible = function(context) {
|
||||
return $(".sunstone-info", context).is(":visible");
|
||||
return $(".sunstone-info", context).is(":visible")
|
||||
};
|
||||
|
||||
var _infoTabVisible = function(context, tab) {
|
||||
return $(tab, $(".sunstone-info", context)).is(":visible")
|
||||
};
|
||||
|
||||
var _rightListVisible = function(context) {
|
||||
@ -1285,6 +1289,7 @@ define(function(require) {
|
||||
|
||||
|
||||
"rightInfoVisible": _rightInfoVisible,
|
||||
"infoTabVisible": _infoTabVisible,
|
||||
"rightListVisible": _rightListVisible,
|
||||
"rightInfoResourceId": _rightInfoResourceId,
|
||||
|
||||
|
@ -47,7 +47,7 @@ define(function(require) {
|
||||
|
||||
setInterval(function() {
|
||||
var tab = $('#' + TAB_ID);
|
||||
if (Sunstone.rightInfoVisible(tab)){
|
||||
if (Sunstone.infoTabVisible(tab, "#vm_info_tab")){
|
||||
$("#vms-tabrefresh_buttons button").click();
|
||||
}
|
||||
}, Config.autorefreshInfo("vms-tab"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user