- per-feed update interval
- download linked images and store them somewhere in case the links get broken
- mark item as unread (maybe add combobox in view frame to mark as read/unread/starred)
-
+- "mark as read" is broken for vfeeds/searches
$search = $_GET["search"];
+ $search_mode = $_GET["smode"];
+
if ($search) {
$search_query_part = "(upper(title) LIKE upper('%$search%')
OR content LIKE '%$search%') AND";
$vfeed_query_part = "";
- if (sprintf("%d", $feed) == 0) {
+ // override query strategy and enable feed display when searching globally
+ if ($search_mode == "All feeds") {
+ $query_strategy_part = "id > 0";
+ $vfeed_query_part = "(SELECT title FROM ttrss_feeds WHERE
+ id = feed_id) as feed_title,";
+ } else if (sprintf("%d", $feed) == 0) {
$query_strategy_part = "ttrss_entries.id > 0";
$vfeed_query_part = "(SELECT title FROM ttrss_feeds WHERE
id = feed_id) as feed_title,";
$query_strategy_part = "id > 0"; // dumb
}
+
$order_by = "updated DESC";
// if ($feed < -10) {
var first_run = true;
var search_query = "";
+var search_mode = "";
var display_tags = false;
search_query = "";
}
+ var searchmodebox = document.getElementById("searchmodebox");
+
+ if (searchmodebox) {
+ search_mode = searchmodebox.value;
+ } else {
+ search_mode = "";
+ }
+
+ setCookie("ttrss_vf_smode", search_mode);
+
var viewbox = document.getElementById("viewbox");
var view_mode;
var query = "backend.php?op=viewfeed&feed=" + param_escape(feed) +
"&skip=" + param_escape(skip) + "&subop=" + param_escape(subop) +
- "&view=" + param_escape(view_mode) + "&limit=" + limit;
+ "&view=" + param_escape(view_mode) + "&limit=" + limit +
+ "&smode=" + param_escape(search_mode);
if (search_query != "") {
query = query + "&search=" + param_escape(search_query);
<input id="searchbox"
onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
onchange="javascript:search()">
+ <select id="searchmodebox">
+ <option>This feed</option>
+ <option>All feeds</option>
+ </select>
+
<input type="submit"
class="button" onclick="javascript:search()" value="Search">
<!-- <input type="submit"