]> git.wh0rd.org Git - tt-rss.git/commitdiff
compact some definitions in headlines list
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 15 May 2007 07:51:57 +0000 (08:51 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 15 May 2007 07:51:57 +0000 (08:51 +0100)
functions.js
functions.php
tt-rss.css
viewfeed.js

index 0677308f42100773adec9fdc51ec246d74d436d1..fcb086b1ccb0eb7f3c54b2fee07c27ca65ed4d1f 100644 (file)
@@ -1109,6 +1109,9 @@ function toggleSelectListRow(sender) {
        }
 }
 
+function tSR(sender) {
+       return toggleSelectRow(sender);
+}
 
 function toggleSelectRow(sender) {
        var parent_row = sender.parentNode.parentNode;
index d68a4506f87f07aff1c4696743f793a4e7e9f50f..8640884a3dd48b799ca6bf42a8e28a0d2e6257c4 100644 (file)
                                }
        
                                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"]."\">" .
                                        
                                        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>";
index e14dcfaead5c6d4993bf7e3568bf233815fd20a1..122bfa9f86fd1fc50172ad3b3436cf1c4cbcfa09 100644 (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;
 }
index 49849c19986e0b4d6dd8171a8bfc0852d2fafb88..e9365dbcbfade5cf4fbac00d7f5c94249e66279a 100644 (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);