From 5532be8c898f9df561ccf52c72df4c06317145e6 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 14 Jan 2010 11:58:05 +0000 Subject: [PATCH] fixing a problem for not updating the folderstati on startup --- felamimail/js/jscode/viewMainScreen.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/felamimail/js/jscode/viewMainScreen.js b/felamimail/js/jscode/viewMainScreen.js index 1292d13289..f8be029e58 100644 --- a/felamimail/js/jscode/viewMainScreen.js +++ b/felamimail/js/jscode/viewMainScreen.js @@ -358,7 +358,9 @@ function refresh() { function refreshFolderStatus(_nodeID,mode) { var nodeToRefresh = 0; var mode2use = "none"; - if (document.getElementById('messageCounter').innerHTML.search(eval('/'+lang_updating_view+'/'))<0 ) {MessageBuffer = document.getElementById('messageCounter').innerHTML;} + if (document.getElementById('messageCounter')) { + if (document.getElementById('messageCounter').innerHTML.search(eval('/'+lang_updating_view+'/'))<0 ) {MessageBuffer = document.getElementById('messageCounter').innerHTML;} + } if (_nodeID) nodeToRefresh = _nodeID; if (mode) { if (mode == "forced") {mode2use = mode;}