if ($line["marked"] == "t" || $line["marked"] == "1") {
$marked_pic = "<img id=\"FMARKPIC-$id\" src=\"images/mark_set.png\"
- alt=\"Reset mark\" onclick='javascript:toggleMark($id, false)'>";
+ alt=\"Reset mark\" onclick='javascript:toggleMark($id)'>";
} else {
$marked_pic = "<img id=\"FMARKPIC-$id\" src=\"images/mark_unset.png\"
- alt=\"Set mark\" onclick='javascript:toggleMark($id, true)'>";
+ alt=\"Set mark\" onclick='javascript:toggleMark($id)'>";
}
$content_link = "<a href=\"javascript:view($id,$feed_id);\">" .
}
-function rowToggleMark(row) {
-
-
-
-}
-
-function toggleMark(id, toggle) {
+function toggleMark(id) {
var f_document = parent.frames["feeds-frame"].document;
// alert(vfeedu);
- if (toggle == true) {
+ if (mark_img.alt != "Reset mark") {
mark_img.src = "images/mark_set.png";
mark_img.alt = "Reset mark";
- mark_img.setAttribute('onclick', 'javascript:toggleMark('+id+', false)');
+ mark_img.setAttribute('onclick', 'javascript:toggleMark('+id+')');
query = query + "&mark=1";
if (vfeedu && crow.className.match("Unread")) {
} else {
mark_img.src = "images/mark_unset.png";
mark_img.alt = "Set mark";
- mark_img.setAttribute('onclick', 'javascript:toggleMark('+id+', true)');
+ mark_img.setAttribute('onclick', 'javascript:toggleMark('+id+')');
query = query + "&mark=0";
if (vfeedu && crow.className.match("Unread")) {
// return viewfeed(active_feed_id, active_offset, "ForceUpdate");
// }
+ if (keycode == 83) { // s
+ if (active_post_id) toggleMark(active_post_id);
+ }
+
// alert("KC: " + keycode);
}