mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
development: Doing auto refresh only in info tab
This commit is contained in:
1 parent
d5391874a0
commit
1bcd3832bd
2 files changed
+7
-2
No files matched your search
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user