revert to previous catchup behaviour on reverse headlines mode; fix typo in js

This commit is contained in:
Andrew Dolgov 2012-06-03 22:42:42 +04:00
parent 184f51952c
commit 705b97b7fc
2 changed files with 3 additions and 2 deletions

View File

@ -1326,7 +1326,8 @@
//if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {
$ref_check_qpart = ($max_id) ? "ref_id <= '$max_id'" : "true";
$ref_check_qpart = ($max_id &&
!get_pref($link, 'REVERSE_HEADLINES')) ? "ref_id <= '$max_id'" : "true";
if (is_numeric($feed)) {
if ($cat_view) {

View File

@ -493,7 +493,7 @@ function catchupFeed(feed, is_cat) {
var max_id = 0;
if (feed = getActiveFeedId() && is_cat == activeFeedIsCat()) {
if (feed == getActiveFeedId() && is_cat == activeFeedIsCat()) {
$$("#headlines-frame > div[id*=RROW]").each(
function(child) {
var id = parseInt(child.id.replace("RROW-", ""));