mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 15:51:27 +00:00
pref-feeds: add checkbox to toggle last article times info
This commit is contained in:
13
prefs.js
13
prefs.js
@@ -205,8 +205,16 @@ function updateFeedList(sort_key) {
|
||||
var search = "";
|
||||
if (feed_search) { search = feed_search.value; }
|
||||
|
||||
var slat = document.getElementById("show_last_article_times");
|
||||
|
||||
var slat_checked = false;
|
||||
if (slat) {
|
||||
slat_checked = slat.checked;
|
||||
}
|
||||
|
||||
xmlhttp.open("GET", "backend.php?op=pref-feeds" +
|
||||
"&sort=" + param_escape(sort_key) +
|
||||
"&slat=" + param_escape(slat_checked) +
|
||||
"&search=" + param_escape(search), true);
|
||||
xmlhttp.onreadystatechange=feedlist_callback;
|
||||
xmlhttp.send(null);
|
||||
@@ -1716,3 +1724,8 @@ function changeUserEmail() {
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
function feedlistToggleSLAT() {
|
||||
notify_progress("Loading, please wait...");
|
||||
updateFeedList()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user