34 lines
947 B
JavaScript
34 lines
947 B
JavaScript
/*
|
|
$Revision: 1 $
|
|
$Modtime: 25-09-09 23:16 $
|
|
*/
|
|
var lastAction = "";
|
|
|
|
function DoAction(messKey, isNew, action) {
|
|
lastAction = action;
|
|
|
|
if (isNew) {
|
|
window.parent.navigate("setReadFlag.asp?messKey=" + messKey + "&act=../" + escape(action));
|
|
} else
|
|
ChangeComplete();
|
|
}
|
|
|
|
function ChangeComplete() {
|
|
if (lastAction != "")
|
|
window.top.frames.MainFrame.navigate("../" + lastAction);
|
|
else
|
|
window.history.go(0);
|
|
}
|
|
|
|
function MarkAsRead(objTD, wasnew) {
|
|
lastAction = "";
|
|
// Now mark as read is actually deleting the message
|
|
objTD.parentElement.style.display = "none";
|
|
// Only the portal has counter that needs adjustment
|
|
if (parent && parent.SetMessInfo) {
|
|
if (wasnew) newMess-=1;
|
|
totalMess-=1;
|
|
parent.SetMessInfo(newMess, totalMess);
|
|
}
|
|
window.frames.hidFrame.navigate("fac_user_messages_setReadFlag.asp?purge=1&messKey=" + objTD.parentElement.messKey);
|
|
} |