mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 23:35:56 +00:00
mobile: fix headline ordering
mobile: fix htmlpurifier cache being included from wrong directory mobile: implement ability to mark article as unread (closes #367)
This commit is contained in:
@@ -39,6 +39,26 @@ function togglePublished(id, elem) {
|
||||
|
||||
}
|
||||
|
||||
function toggleUnread(id, elem) {
|
||||
|
||||
var toggled = false;
|
||||
|
||||
if (elem.getAttribute("toggled") == "true") {
|
||||
toggled = 1;
|
||||
} else {
|
||||
toggled = 0;
|
||||
}
|
||||
|
||||
var query = "?op=toggleUnread&id=" + id + "&unread=" + toggled;
|
||||
|
||||
new Ajax.Request(backend, {
|
||||
parameters: query,
|
||||
onComplete: function (transport) {
|
||||
//
|
||||
} });
|
||||
|
||||
}
|
||||
|
||||
function setPref(elem) {
|
||||
var toggled = false;
|
||||
var id = elem.id;
|
||||
|
||||
Reference in New Issue
Block a user