mark currently selected post on headlines update, remove debug msg on content hash change
This commit is contained in:
parent
d5caaae569
commit
b5daec986c
|
@ -214,9 +214,6 @@
|
||||||
|
|
||||||
if (UPDATE_POST_ON_CHECKSUM_CHANGE &&
|
if (UPDATE_POST_ON_CHECKSUM_CHANGE &&
|
||||||
$orig_content_hash != $content_hash) {
|
$orig_content_hash != $content_hash) {
|
||||||
|
|
||||||
print "$orig_content_hash : $content_hash";
|
|
||||||
|
|
||||||
$last_read_qpart = 'last_read = null,';
|
$last_read_qpart = 'last_read = null,';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
13
tt-rss.js
13
tt-rss.js
|
@ -105,6 +105,8 @@ function viewfeed_callback() {
|
||||||
var searchbox = document.getElementById("searchbox");
|
var searchbox = document.getElementById("searchbox");
|
||||||
searchbox.value = search_query;
|
searchbox.value = search_query;
|
||||||
|
|
||||||
|
markHeadline(active_post_id);
|
||||||
|
|
||||||
notify("");
|
notify("");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -260,8 +262,10 @@ function viewfeed(feed, skip, subop) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (active_feed_id != feed)
|
||||||
|
active_post_id = false;
|
||||||
|
|
||||||
active_feed_id = feed;
|
active_feed_id = feed;
|
||||||
active_post_id = false;
|
|
||||||
active_offset = skip;
|
active_offset = skip;
|
||||||
|
|
||||||
var query = "backend.php?op=viewfeed&feed=" + param_escape(feed) +
|
var query = "backend.php?op=viewfeed&feed=" + param_escape(feed) +
|
||||||
|
@ -279,6 +283,13 @@ function viewfeed(feed, skip, subop) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function markHeadline(id) {
|
||||||
|
var row = document.getElementById("RROW-" + id);
|
||||||
|
if (row) {
|
||||||
|
row.className = row.className + "Selected";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function cleanSelected(element) {
|
function cleanSelected(element) {
|
||||||
var content = document.getElementById(element);
|
var content = document.getElementById(element);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue