mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:55:55 +00:00
offline: toggleCollapseCat() update status in local db
This commit is contained in:
10
offline.js
10
offline.js
@@ -830,3 +830,13 @@ function gotoOnline() {
|
||||
window.location.href = "tt-rss.php";
|
||||
}
|
||||
|
||||
function local_collapse_cat(id) {
|
||||
try {
|
||||
if (db) {
|
||||
db.execute("UPDATE categories SET collapsed = NOT collapsed WHERE id = ?",
|
||||
[id]);
|
||||
}
|
||||
} catch (e) {
|
||||
exception_error("local_collapse_cat", e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user