diff --git a/felamimail/inc/class.uidisplay.inc.php b/felamimail/inc/class.uidisplay.inc.php index c2b02211a7..6c428f552d 100644 --- a/felamimail/inc/class.uidisplay.inc.php +++ b/felamimail/inc/class.uidisplay.inc.php @@ -509,13 +509,17 @@ 'mailbox' => base64_encode($this->mailbox) ); $previousURL = $GLOBALS['egw']->link('/index.php',$linkData); - $previousURL = "window.location.href = '$previousURL'"; + $previousURL = "goToMessage('$previousURL')"; $navbarImages['up.button'] = array( 'action' => $previousURL, 'tooltip' => lang('previous message'), ); } else { - $previousURL = ''; + $previousURL = '#'; + $navbarImages['up.grey'] = array( + 'action' => $previousURL, + 'tooltip' => lang('previous message'), + ); } if($nextMessage['next']) { @@ -526,13 +530,17 @@ 'mailbox' => base64_encode($this->mailbox) ); $nextURL = $GLOBALS['egw']->link('/index.php',$linkData); - $nextURL = "window.location.href = '$nextURL'"; + $nextURL = "goToMessage('$nextURL')"; $navbarImages['down.button'] = array( 'action' => $nextURL, 'tooltip' => lang('next message'), ); } else { - $nextURL = ''; + $nextURL = '#'; + $navbarImages['down.grey'] = array( + #'action' => $nextURL, + 'tooltip' => lang('next message'), + ); } diff --git a/felamimail/js/jscode/viewMainScreen.js b/felamimail/js/jscode/viewMainScreen.js index 1afeb382e7..a5d3d5cb7f 100644 --- a/felamimail/js/jscode/viewMainScreen.js +++ b/felamimail/js/jscode/viewMainScreen.js @@ -1,3 +1,20 @@ +function parentRefreshListRowStyle(oldID, newID) +{ + var trElement; + var aElements; + trElement = document.getElementById('row_'+oldID); + trElement.style.fontWeight='normal'; + aElements = trElement.getElementsByTagName("a"); + aElements[0].style.fontWeight='normal'; + aElements[1].style.fontWeight='normal'; + trElement = document.getElementById('row_'+newID); + trElement.style.fontWeight='normal'; + aElements = trElement.getElementsByTagName("a"); + aElements[0].style.fontWeight='normal'; + aElements[1].style.fontWeight='normal'; + +} + function setStatusMessage(_message) { document.getElementById('messageCounter').innerHTML = '
' + _message + ' |