]> git.wh0rd.org Git - tt-rss.git/commitdiff
prevent disabled rows to be selected by selectall
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 26 Nov 2005 12:31:34 +0000 (13:31 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 26 Nov 2005 12:31:34 +0000 (13:31 +0100)
backend.php

index 79b016f37f204986aceb92a079079441b19c801f..f8b5c70347a3a84f5367cda78e0b68f94fe9c7cc 100644 (file)
        
                                if ($subop == "edit" && $feed_id != $edit_feed_id) {
                                        $class .= "Grayed";
+                                       $this_row_id = "";
+                               } else {
+                                       $this_row_id = "id=\"FEEDR-$feed_id\"";
                                }
        
-                               print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">";
+                               print "<tr class=\"$class\" $this_row_id>";
        
                                $icon_file = ICONS_DIR . "/$feed_id.ico";
        
                
                                        if ($subop == "editCat" && $cat_id != $edit_cat_id) {
                                                $class .= "Grayed";
+                                               $this_row_id = "";
+                                       } else {
+                                               $this_row_id = "id=\"FCATR-$cat_id\"";
                                        }
                
-                                       print "<tr class=\"$class\" id=\"FCATR-$cat_id\">";
+                                       print "<tr class=\"$class\" $this_row_id>";
                
                                        $edit_title = htmlspecialchars(db_unescape_string($line["title"]));
                
        
                                if ($subop == "edit" && $filter_id != $edit_filter_id) {
                                        $class .= "Grayed";
+                                       $this_row_id = "";
+                               } else {
+                                       $this_row_id = "id=\"FILRR-$filter_id\"";
                                }
        
-                               print "<tr class=\"$class\" id=\"FILRR-$filter_id\">";
+                               print "<tr class=\"$class\" $this_row_id>";
        
                                $line["regexp"] = htmlspecialchars($line["reg_exp"]);
                                $line["description"] = htmlspecialchars($line["description"]);
        
                                if ($subop == "edit" && $label_id != $edit_label_id) {
                                        $class .= "Grayed";
+                                       $this_row_id = "";
+                               } else {
+                                       $this_row_id = "id=\"LILRR-$label_id\"";
                                }
        
-                               print "<tr class=\"$class\" id=\"LILRR-$label_id\">";
+                               print "<tr class=\"$class\" $this_row_id>";
        
                                $line["sql_exp"] = htmlspecialchars($line["sql_exp"]);
                                $line["description"] = htmlspecialchars($line["description"]);
 
                        if ($uid == $_SESSION["uid"] || ($subop == "edit" && $uid != $edit_uid)) {
                                $class .= "Grayed";
-                       }
-               
-                       print "<tr class=\"$class\" id=\"UMRR-$uid\">";
+                               $this_row_id = "";
+                       } else {
+                               $this_row_id = "id=\"UMRR-$uid\"";
+                       }               
+                       
+                       print "<tr class=\"$class\" $this_row_id>";
 
                        $line["login"] = htmlspecialchars($line["login"]);