1
0
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:
Andrew Dolgov
2011-09-09 14:24:14 +04:00
parent 97e5dbb2e7
commit b9fca8678b
4 changed files with 41 additions and 4 deletions

View File

@@ -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;