Improvement related to reload counters for Valeo

This commit is contained in:
Julio Cesar Laura Avendaño
2020-01-14 11:57:18 -04:00
parent a1b92c852e
commit 4517abc30d
4 changed files with 6 additions and 22 deletions

View File

@@ -2602,12 +2602,6 @@ Ext.onReady ( function() {
// Nothing to do // Nothing to do
} }
try {
parent.updateCasesTree();
}
catch (e) {
// Nothing to do
}
if (action === "search") { if (action === "search") {
comboCategory.setValue( comboCategory.setValue(
typeof filtersValues !== 'undefined' && filtersValues.advanced && filtersValues.advanced.category ? typeof filtersValues !== 'undefined' && filtersValues.advanced && filtersValues.advanced.category ?

View File

@@ -593,8 +593,6 @@ Ext.onReady(function () {
} }
} }
parent.updateCasesTree();
function inArray(arr, obj) { function inArray(arr, obj) {
for (var i = 0; i < arr.length; i++) { for (var i = 0; i < arr.length; i++) {
if (arr[i] == obj) if (arr[i] == obj)

View File

@@ -6,16 +6,6 @@ Ext.chart.Chart.CHART_URL = '/images/charts.swf';
Ext.FlashComponent.EXPRESS_INSTALL_URL = '/images/expressinstall.swf'; Ext.FlashComponent.EXPRESS_INSTALL_URL = '/images/expressinstall.swf';
// The Quicktips are used for the toolbar and Tree mouseover tooltips! // The Quicktips are used for the toolbar and Tree mouseover tooltips!
// Refresh treePanel
try {
if (typeof(parent.timer) != 'undefined') {
parent.timer();
}
} catch(theError) {
// This try-catch is for Zimbra error
}
var conn = new Ext.data.Connection(); var conn = new Ext.data.Connection();
Docs = {}; Docs = {};

View File

@@ -496,8 +496,12 @@ Ext.onReady(function(){
/**hide*/ /**hide*/
menuPanelC.hide(); menuPanelC.hide();
menuPanelC.ownerCt.doLayout(); menuPanelC.ownerCt.doLayout();
//FORMATS.casesListRefreshTime is in seconds
setTimeout("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000); // Get the counters the first time
updateCasesTree();
// FORMATS.casesListRefreshTime is in seconds
setInterval("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000);
}); });
function updateCasesView(viewList) { function updateCasesView(viewList) {
@@ -562,8 +566,6 @@ function timer() {
updateCasesTree(); updateCasesTree();
updateCasesView(); updateCasesView();
} }
//FORMATS.casesListRefreshTime is in seconds
setTimeout("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000);
} }
Ext.data.DynamicJsonReader = function(config){ Ext.data.DynamicJsonReader = function(config){