mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
Merge remote-tracking branch 'origin' into hookhead
update to latest
This commit is contained in:
@@ -41,6 +41,8 @@
|
|||||||
header("Content-type: image/png");
|
header("Content-type: image/png");
|
||||||
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
||||||
header("Last-Modified: $stamp", true);
|
header("Last-Modified: $stamp", true);
|
||||||
|
ob_clean(); // discard any data in the output buffer (if possible)
|
||||||
|
flush(); // flush headers (if possible)
|
||||||
readfile($filename);
|
readfile($filename);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ var PluginHost = {
|
|||||||
HOOK_ARTICLE_COLLAPSED: 7,
|
HOOK_ARTICLE_COLLAPSED: 7,
|
||||||
HOOK_PARAMS_LOADED: 8,
|
HOOK_PARAMS_LOADED: 8,
|
||||||
HOOK_RUNTIME_INFO_LOADED: 9,
|
HOOK_RUNTIME_INFO_LOADED: 9,
|
||||||
|
HOOK_FLOATING_TITLE: 10,
|
||||||
hooks: [],
|
hooks: [],
|
||||||
register: function (name, callback) {
|
register: function (name, callback) {
|
||||||
if (typeof(this.hooks[name]) == 'undefined')
|
if (typeof(this.hooks[name]) == 'undefined')
|
||||||
|
|||||||
@@ -2226,6 +2226,8 @@ function updateFloatingTitle() {
|
|||||||
if (child.id != $("floatingTitle").getAttribute("rowid")) {
|
if (child.id != $("floatingTitle").getAttribute("rowid")) {
|
||||||
$("floatingTitle").setAttribute("rowid", child.id);
|
$("floatingTitle").setAttribute("rowid", child.id);
|
||||||
$("floatingTitle").innerHTML = header.innerHTML;
|
$("floatingTitle").innerHTML = header.innerHTML;
|
||||||
|
|
||||||
|
PluginHost.run(PluginHost.HOOK_FLOATING_TITLE, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (child.offsetTop < hf.scrollTop - header.offsetHeight - 100 &&
|
if (child.offsetTop < hf.scrollTop - header.offsetHeight - 100 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user