diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pref-feeds.php | 14 | ||||
-rw-r--r-- | modules/pref-filters.php | 16 | ||||
-rw-r--r-- | modules/pref-labels.php | 11 | ||||
-rw-r--r-- | modules/pref-users.php | 56 |
4 files changed, 26 insertions, 71 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index e52e54c8a..e4f6b60d6 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1052,8 +1052,10 @@ print "<td class='feedSelect'><input onclick='toggleSelectPrefRow(this, \"feed\");' type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>"; + $onclick = "onclick='editFeed($feed_id)' title='".__('Click to edit')."'"; + if (get_pref($link, 'ENABLE_FEED_ICONS')) { - print "<td class='feedIcon'>$feed_icon</td>"; + print "<td $onclick class='feedIcon'>$feed_icon</td>"; } if ($hidden) { @@ -1074,16 +1076,14 @@ $parent_title)</span>"; } - print "<td><a href=\"javascript:editFeed($feed_id);\">" . - "$edit_title $parent_title" . "</a></td>"; + print "<td $onclick>" . "$edit_title $parent_title" . "</td>"; if ($show_last_article_info) { - print "<td align='right'><a href=\"javascript:editFeed($feed_id);\">" . - "$last_article</a></td>"; + print "<td align='right' $onclick>" . + "$last_article</td>"; } - print "<td align='right'><a href=\"javascript:editFeed($feed_id);\">" . - "$last_updated</a></td>"; + print "<td $onclick align='right'>$last_updated</td>"; print "</tr>"; diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 7975e1297..4fb59d4ae 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -370,12 +370,12 @@ $line["action_param"] = "<span class=\"insensitive\">" . $line["action_param"] . "</span>"; } + + $onclick = "onclick='editFilter($filter_id)' title='".__('Click to edit')."'"; + + print "<td $onclick>" . $line["reg_exp"] . "</td>"; - print "<td><a href=\"javascript:editFilter($filter_id);\">" . - $line["reg_exp"] . "</td>"; - - print "<td><a href=\"javascript:editFilter($filter_id);\">" . - $line["feed_title"] . "</td>"; + print "<td $onclick>" . $line["feed_title"] . "</td>"; $inverse_label = ""; @@ -383,14 +383,12 @@ $inverse_label = " <span class='insensitive'>".__('(Inverse)')."</span>"; } - print "<td><a href=\"javascript:editFilter($filter_id);\">" . - $line["filter_type_descr"] . "$inverse_label</td>"; + print "<td $onclick>" . $line["filter_type_descr"] . "$inverse_label</td>"; /* print "<td><a href=\"javascript:editFilter($filter_id);\">" . $line["action_description"]."</td>"; */ - print "<td><a href=\"javascript:editFilter($filter_id);\">" . - $line["action_param"] . "</td>"; + print "<td $onclick>" . $line["action_param"] . "</td>"; print "</tr>"; diff --git a/modules/pref-labels.php b/modules/pref-labels.php index ce326bf01..fda73ecf0 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -299,16 +299,15 @@ $line["sql_exp"] = htmlspecialchars($line["sql_exp"]); $line["description"] = htmlspecialchars($line["description"]); - if (!$line["description"]) $line["description"] = "[No caption]"; + if (!$line["description"]) $line["description"] = __("[No caption]"); + + $onclick = "onclick='editLabel($label_id)' title='".__('Click to edit')."'"; print "<td align='center'><input onclick='toggleSelectPrefRow(this, \"label\");' type=\"checkbox\" id=\"LICHK-".$line["id"]."\"></td>"; - print "<td><a href=\"javascript:editLabel($label_id);\">" . - $line["description"] . "</td>"; - - print "<td><a href=\"javascript:editLabel($label_id);\">" . - $line["sql_exp"] . "</td>"; + print "<td $onclick>" . $line["description"] . "</td>"; + print "<td $onclick>" . $line["sql_exp"] . "</td>"; print "</tr>"; diff --git a/modules/pref-users.php b/modules/pref-users.php index 2e9eff759..961e314f4 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -287,60 +287,18 @@ strtotime($line["created"])); } -// if (!$edit_uid || $subop != "edit") { - - print "<td align='center'><input onclick='toggleSelectPrefRow(this, \"user\");' + print "<td align='center'><input onclick='toggleSelectPrefRow(this, \"user\");' type=\"checkbox\" id=\"UMCHK-$uid\"></td>"; - print "<td><a href=\"javascript:editUser($uid);\">" . - $line["login"] . "</td>"; - - if (!$line["email"]) $line["email"] = " "; - - print "<td><a href=\"javascript:editUser($uid);\">" . - $access_level_names[$line["access_level"]] . "</td>"; - -/* } else if ($uid != $edit_uid) { + $onclick = "onclick='editUser($uid) title='".__('Click to edit')."''"; - if (!$line["email"]) $line["email"] = " "; - - print "<td align='center'><input disabled=\"true\" type=\"checkbox\" - id=\"UMCHK-".$line["id"]."\"></td>"; - - print "<td>".$line["login"]."</td>"; - print "<td>".$line["email"]."</td>"; - print "<td>".$access_level_names[$line["access_level"]]."</td>"; - - } else { + print "<td $onclick>" . $line["login"] . "</td>"; - print "<td align='center'> - <input disabled=\"true\" type=\"checkbox\" checked></td>"; + if (!$line["email"]) $line["email"] = " "; - print "<td><input id=\"iedit_ulogin\" value=\"".$line["login"]. - "\"></td>"; - - print "<td><input id=\"iedit_email\" value=\"".$line["email"]. - "\"></td>"; - - print "<td>"; - print "<select id=\"iedit_ulevel\">"; - foreach (array_keys($access_level_names) as $al) { - if ($al == $line["access_level"]) { - $selected = "selected"; - } else { - $selected = ""; - } - print "<option $selected id=\"$al\">" . - $access_level_names[$al] . "</option>"; - } - print "</select>"; - print "</td>"; - - } */ - - - print "<td>".$line["created"]."</td>"; - print "<td>".$line["last_login"]."</td>"; + print "<td $onclick>" . $access_level_names[$line["access_level"]] . "</td>"; + print "<td $onclick>" . $line["created"] . "</td>"; + print "<td $onclick>" . $line["last_login"] . "</td>"; print "</tr>"; |