mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +01:00
fix not marking messages as seen, when using up/down arrows on mail display popups
This commit is contained in:
parent
b48b67f2d8
commit
0868474343
@ -80,9 +80,10 @@ function mail_disabledByClass(_action, _senders, _target)
|
||||
return !$j(_target.iface.getDOMNode()).hasClass(_action.data.disableClass);
|
||||
}
|
||||
|
||||
function mail_parentRefreshListRowStyle(oldID, newID)
|
||||
function mail_parentRefreshListRowStyle(oldID, newID, setNewAsSeen)
|
||||
{
|
||||
// the old implementation is not working anymore, so we use the gridObject for this
|
||||
if (typeof setNewAsSeen == 'undefined') setNewAsSeen = false;
|
||||
var allElements = mailGrid.dataRoot.actionObject.flatList();
|
||||
for (var i=0; i<allElements.length; i++)
|
||||
{
|
||||
@ -97,6 +98,7 @@ function mail_parentRefreshListRowStyle(oldID, newID)
|
||||
{
|
||||
allElements[i].setSelected(false);
|
||||
allElements[i].setFocused(true);
|
||||
if (setNewAsSeen) fm_msg_removeClass(newID, 'unseen');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ function goToMessage(url) {
|
||||
//alert(getUrlPart(window.location.href,'uid'));
|
||||
var oldUid = getUrlPart(window.location.href,'uid');
|
||||
var newUid = getUrlPart(url,'uid');
|
||||
window.opener.mail_parentRefreshListRowStyle(oldUid, newUid);
|
||||
window.opener.mail_parentRefreshListRowStyle(oldUid, newUid, true);
|
||||
window.location.href = url;
|
||||
//opener.refresh();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user