]> git.wh0rd.org - tt-rss.git/commitdiff
plugins web list style tweaks
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 25 Dec 2012 08:31:07 +0000 (12:31 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 25 Dec 2012 08:31:07 +0000 (12:31 +0400)
classes/pref/prefs.php
tt-rss.css

index b8c8b9097aef10c85f2e9e04116639654e295617..14e88546aa1ab9b32f00f424f06b23d0c42aa1e6 100644 (file)
@@ -655,7 +655,7 @@ class Pref_Prefs extends Handler_Protected {
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"setplugins\">";
 
-               print "<table width='100%'>";
+               print "<table width='100%' class='prefPluginsList'>";
 
                print "<tr><td colspan='4'><h3>".__("System plugins")."</h3></td></tr>";
 
@@ -716,22 +716,25 @@ class Pref_Prefs extends Handler_Protected {
                                if (in_array($name, $system_enabled)) {
                                        $checked = "checked='1'";
                                        $disabled = "disabled='1'";
+                                       $rowclass = '';
                                } else if (in_array($name, $user_enabled)) {
                                        $checked = "checked='1'";
                                        $disabled = "";
+                                       $rowclass = "Selected";
                                } else {
                                        $checked = "";
                                        $disabled = "";
+                                       $rowclass = '';
                                }
 
-                               print "<tr>";
+                               print "<tr class='$rowclass'>";
 
                                print "<td align='center'><input id='FPCHK-$name' name='plugins[]' value='$name' onclick='toggleSelectRow2(this);'
                                        dojoType=\"dijit.form.CheckBox\" $checked $disabled
                                        type=\"checkbox\"></td>";
 
-                               print "<td>$name</td>";
-                               print "<td>" . htmlspecialchars($about[1]) . "</td>";
+                               print "<td><label for='FPCHK-$name'>$name</label></td>";
+                               print "<td><label for='FPCHK-$name'>" . htmlspecialchars($about[1]) . "</label></td>";
                                print "<td>" . htmlspecialchars(sprintf("%.2f", $about[0])) . "</td>";
                                print "<td>" . htmlspecialchars($about[2]) . "</td>";
 
index 2021f23b0d10aa76d2f450468c3c105d5160ffdb..1e89360b585c1478cdad8fc93deaf7da0ef47ff5 100644 (file)
@@ -1410,3 +1410,7 @@ ul#filterDlg_Matches li, ul#filterDlg_Actions li {
 ul#filterDlg_Matches li div.dijitCheckBox, ul#filterDlg_Actions li div.dijitCheckBox {
        margin-right : 5px;
 }
+
+table.prefPrefsList td labe/ {
+       cursor : pointer;
+}