compact some definitions in headlines list

This commit is contained in:
Andrew Dolgov 2007-05-15 08:51:57 +01:00
parent 961f4c7323
commit 67343d9f9b
4 changed files with 16 additions and 9 deletions

View File

@ -1109,6 +1109,9 @@ function toggleSelectListRow(sender) {
}
}
function tSR(sender) {
return toggleSelectRow(sender);
}
function toggleSelectRow(sender) {
var parent_row = sender.parentNode.parentNode;

View File

@ -3653,13 +3653,13 @@
}
if ($line["marked"] == "t" || $line["marked"] == "1") {
$marked_pic = "<img id=\"FMARKPIC-$id\" src=\"images/mark_set.png\"
$marked_pic = "<img id=\"FMPIC-$id\" src=\"images/mark_set.png\"
class=\"markedPic\"
alt=\"Reset mark\" onclick='javascript:toggleMark($id)'>";
alt=\"Reset mark\" onclick='javascript:tMark($id)'>";
} else {
$marked_pic = "<img id=\"FMARKPIC-$id\" src=\"images/mark_unset.png\"
$marked_pic = "<img id=\"FMPIC-$id\" src=\"images/mark_unset.png\"
class=\"markedPic\"
alt=\"Set mark\" onclick='javascript:toggleMark($id)'>";
alt=\"Set mark\" onclick='javascript:tMark($id)'>";
}
# $content_link = "<a target=\"_new\" href=\"".$line["link"]."\">" .
@ -3693,11 +3693,11 @@
print "<tr class='$class' id='RROW-$id'>";
print "<td class='hlUpdatePic'>$update_pic</td>";
print "<td class='hlUpdPic'>$update_pic</td>";
print "<td class='hlSelectRow'>
<input type=\"checkbox\" onclick=\"toggleSelectRow(this)\"
class=\"feedCheckBox\" id=\"RCHK-$id\">
<input type=\"checkbox\" onclick=\"tSR(this)\"
id=\"RCHK-$id\">
</td>";
print "<td class='hlMarkedPic'>$marked_pic</td>";

View File

@ -774,7 +774,7 @@ table.headlinesList td.hlfeed {
text-align : right;
}
td.hlSelectRow, td.hlUpdatePic {
td.hlSelectRow, td.hlUpdPic {
width : 25px;
text-align : center;
}

View File

@ -288,6 +288,10 @@ function view(id, feed_id, skip_history) {
}
}
function tMark(id) {
return toggleMark(id);
}
function toggleMark(id) {
if (!xmlhttp_ready(xmlhttp_rpc)) {
@ -297,7 +301,7 @@ function toggleMark(id) {
var query = "backend.php?op=rpc&id=" + id + "&subop=mark";
var mark_img = document.getElementById("FMARKPIC-" + id);
var mark_img = document.getElementById("FMPIC-" + id);
var vfeedu = document.getElementById("FEEDU--1");
var crow = document.getElementById("RROW-" + id);