Improvement related to reload counters for Valeo
This commit is contained in:
@@ -2602,12 +2602,6 @@ Ext.onReady ( function() {
|
||||
// Nothing to do
|
||||
}
|
||||
|
||||
try {
|
||||
parent.updateCasesTree();
|
||||
}
|
||||
catch (e) {
|
||||
// Nothing to do
|
||||
}
|
||||
if (action === "search") {
|
||||
comboCategory.setValue(
|
||||
typeof filtersValues !== 'undefined' && filtersValues.advanced && filtersValues.advanced.category ?
|
||||
|
||||
@@ -593,8 +593,6 @@ Ext.onReady(function () {
|
||||
}
|
||||
}
|
||||
|
||||
parent.updateCasesTree();
|
||||
|
||||
function inArray(arr, obj) {
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (arr[i] == obj)
|
||||
|
||||
@@ -6,16 +6,6 @@ Ext.chart.Chart.CHART_URL = '/images/charts.swf';
|
||||
Ext.FlashComponent.EXPRESS_INSTALL_URL = '/images/expressinstall.swf';
|
||||
// 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();
|
||||
|
||||
Docs = {};
|
||||
|
||||
@@ -496,8 +496,12 @@ Ext.onReady(function(){
|
||||
/**hide*/
|
||||
menuPanelC.hide();
|
||||
menuPanelC.ownerCt.doLayout();
|
||||
|
||||
// Get the counters the first time
|
||||
updateCasesTree();
|
||||
|
||||
// FORMATS.casesListRefreshTime is in seconds
|
||||
setTimeout("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000);
|
||||
setInterval("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000);
|
||||
});
|
||||
|
||||
function updateCasesView(viewList) {
|
||||
@@ -562,8 +566,6 @@ function timer() {
|
||||
updateCasesTree();
|
||||
updateCasesView();
|
||||
}
|
||||
//FORMATS.casesListRefreshTime is in seconds
|
||||
setTimeout("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000);
|
||||
}
|
||||
|
||||
Ext.data.DynamicJsonReader = function(config){
|
||||
|
||||
Reference in New Issue
Block a user