]> git.wh0rd.org Git - tt-rss.git/commitdiff
some searchbox focus workarouns, content hash checking is optional now
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 25 Aug 2005 14:12:10 +0000 (15:12 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 25 Aug 2005 14:12:10 +0000 (15:12 +0100)
backend.php
config.php-dist
functions.php
tt-rss.js

index dd38641ac096fdf12355e771a1bbe89063067646..cfdc4be9c451784bd3fbfae44b05cd4de1300b0d 100644 (file)
                }
 
                $result = pg_query("SELECT count(id) AS total_entries 
-                       FROM ttrss_entries WHERE feed_id = '$feed'");
+                       FROM ttrss_entries WHERE 
+                       $search_query_part
+                       feed_id = '$feed'");
 
                $total_entries = pg_fetch_result($result, 0, "total_entries");
 
index e301ef058d4bd46c38896762d1bcbe0ec1a738a1..b02e4c438a0bc3b7991cc6144ae3a4b2ed5bd772 100644 (file)
@@ -8,5 +8,6 @@
        define(ICONS_DIR, "icons");
        define(ICONS_URL, "icons");
        define(PURGE_OLD_DAYS, 30);
+       define(UPDATE_POST_ON_CHECKSUM_CHANGE, true);
 ?>
 
index 46d010237942451874f386d552a3ab6fa488dd94..1374328bf0dc6da38ad99c0ce7c8027279ac43d9 100644 (file)
                                        if ($orig_title != $entry_title) {
                                                $last_read_qpart = 'last_read = null,';
                                        }
+                                       
+                                       if (UPDATE_POST_ON_CHECKSUM_CHANGE && 
+                                                       $orig_content_hash != $content_hash) {
 
-                                       if ($orig_content_hash != $content_hash) {
                                                $last_read_qpart = 'last_read = null,';
                                        }
 
index 58acf1d3000fb22c1308bc413bf89f41e021e122..99c539c2508f362ec797b1bd06545d0c3a274383 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -244,6 +244,8 @@ function catchupAllFeeds() {
 
 function viewfeed(feed, skip, subop) {
 
+       enableHotkeys();
+
        var searchbox = document.getElementById("searchbox");
 
        if (searchbox) {
@@ -298,6 +300,8 @@ function cleanSelectedHeadlines() {
 
 function view(id,feed_id) {
 
+       enableHotkeys();
+
        if (xmlhttp_view.readyState != 4 && xmlhttp_view.readyState != 0) {
                printLockingError();
                return