js: misc cleanup

This commit is contained in:
Andrew Dolgov 2011-12-10 22:40:12 +04:00
parent 8c622460c2
commit b167df5e60
5 changed files with 4 additions and 24 deletions

View File

@ -378,10 +378,6 @@ function getFeedUnread(feed, is_cat) {
return -1; return -1;
} }
function resort_feedlist() {
console.warn("resort_feedlist: function not implemented");
}
function hideOrShowFeeds(hide) { function hideOrShowFeeds(hide) {
var tree = dijit.byId("feedTree"); var tree = dijit.byId("feedTree");

View File

@ -5077,24 +5077,24 @@
$marked_pic = "<img id=\"FMPIC-$id\" $marked_pic = "<img id=\"FMPIC-$id\"
src=\"".theme_image($link, 'images/mark_set.png')."\" src=\"".theme_image($link, 'images/mark_set.png')."\"
class=\"markedPic\" alt=\"Unstar article\" class=\"markedPic\" alt=\"Unstar article\"
onclick='javascript:tMark($id)'>"; onclick='javascript:toggleMark($id)'>";
} else { } else {
$marked_pic = "<img id=\"FMPIC-$id\" $marked_pic = "<img id=\"FMPIC-$id\"
src=\"".theme_image($link, 'images/mark_unset.png')."\" src=\"".theme_image($link, 'images/mark_unset.png')."\"
class=\"markedPic\" alt=\"Star article\" class=\"markedPic\" alt=\"Star article\"
onclick='javascript:tMark($id)'>"; onclick='javascript:toggleMark($id)'>";
} }
if ($line["published"] == "t" || $line["published"] == "1") { if ($line["published"] == "t" || $line["published"] == "1") {
$published_pic = "<img id=\"FPPIC-$id\" src=\"".theme_image($link, $published_pic = "<img id=\"FPPIC-$id\" src=\"".theme_image($link,
'images/pub_set.png')."\" 'images/pub_set.png')."\"
class=\"markedPic\" class=\"markedPic\"
alt=\"Unpublish article\" onclick='javascript:tPub($id)'>"; alt=\"Unpublish article\" onclick='javascript:togglePub($id)'>";
} else { } else {
$published_pic = "<img id=\"FPPIC-$id\" src=\"".theme_image($link, $published_pic = "<img id=\"FPPIC-$id\" src=\"".theme_image($link,
'images/pub_unset.png')."\" 'images/pub_unset.png')."\"
class=\"markedPic\" class=\"markedPic\"
alt=\"Publish article\" onclick='javascript:tPub($id)'>"; alt=\"Publish article\" onclick='javascript:togglePub($id)'>";
} }
# $content_link = "<a target=\"_blank\" href=\"".$line["link"]."\">" . # $content_link = "<a target=\"_blank\" href=\"".$line["link"]."\">" .

View File

@ -33,7 +33,6 @@
<tr><td class='n'>c l</td><td><?php echo __("Create label") ?></td></tr> <tr><td class='n'>c l</td><td><?php echo __("Create label") ?></td></tr>
<tr><td class='n'>c f</td><td><?php echo __("Create filter") ?></td></tr> <tr><td class='n'>c f</td><td><?php echo __("Create filter") ?></td></tr>
<tr><td class='n'>c s</td><td><?php echo __("Collapse sidebar") ?></td></tr> <tr><td class='n'>c s</td><td><?php echo __("Collapse sidebar") ?></td></tr>
<!-- <tr><td class='n'>c m</td><td><?php echo __("Toggle category reordering mode") ?></td></tr> -->
<tr><td class='n'>?</td><td><?php echo __("Display this help dialog") ?></td></tr> <tr><td class='n'>?</td><td><?php echo __("Display this help dialog") ?></td></tr>
</table> </table>
@ -52,11 +51,9 @@
<table> <table>
<tr><td class='n'>f r</td><td><?php echo __("Refresh active feed") ?></td></tr> <tr><td class='n'>f r</td><td><?php echo __("Refresh active feed") ?></td></tr>
<!-- <tr><td class='n'>R</td><td><?php echo __("Update all feeds") ?></td></tr> -->
<tr><td class='n'>f a</td><td><?php echo __("(Un)hide read feeds") ?></td></tr> <tr><td class='n'>f a</td><td><?php echo __("(Un)hide read feeds") ?></td></tr>
<tr><td class='n'>f s</td><td><?php echo __("Subscribe to feed") ?></td></tr> <tr><td class='n'>f s</td><td><?php echo __("Subscribe to feed") ?></td></tr>
<tr><td class='n'>f e</td><td><?php echo __("Edit feed") ?></td></tr> <tr><td class='n'>f e</td><td><?php echo __("Edit feed") ?></td></tr>
<!-- <tr><td class='n'>f w</td><td><?php echo __("Sort by name or unread count") ?></td></tr> -->
<tr><td class='n'>f q</td><td><?php echo __("Mark feed as read") ?></td></tr> <tr><td class='n'>f q</td><td><?php echo __("Mark feed as read") ?></td></tr>
<tr><td class='n'>f x</td><td><?php echo __("Reverse headlines order") ?></td></tr> <tr><td class='n'>f x</td><td><?php echo __("Reverse headlines order") ?></td></tr>
<tr><td class='n'>Q</td><td><?php echo __("Mark all feeds as read") ?></td></tr> <tr><td class='n'>Q</td><td><?php echo __("Mark all feeds as read") ?></td></tr>

View File

@ -914,11 +914,6 @@ function hotkey_handler(e) {
} }
} }
if (keycode == 87) { // w
feeds_sort_by_unread = !feeds_sort_by_unread;
return resort_feedlist();
}
if (keycode == 88) { // x if (keycode == 88) { // x
reverseHeadlineOrder(); reverseHeadlineOrder();
return; return;

View File

@ -404,14 +404,6 @@ function view(id) {
} }
} }
function tMark(id) {
return toggleMark(id);
}
function tPub(id) {
return togglePub(id);
}
function toggleMark(id, client_only) { function toggleMark(id, client_only) {
try { try {
var query = "?op=rpc&id=" + id + "&subop=mark"; var query = "?op=rpc&id=" + id + "&subop=mark";