fix broken counter update after view/viefeed
This commit is contained in:
parent
59a543f0ee
commit
0a17ba5eea
31
backend.php
31
backend.php
|
@ -659,7 +659,11 @@
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
print "<script type=\"text/javascript\">
|
print "<script type=\"text/javascript\">
|
||||||
update_all_counters('$feed_id');
|
try {
|
||||||
|
parent.update_all_counters('$feed_id');
|
||||||
|
} catch (e) {
|
||||||
|
exception_error('view/footer', e);
|
||||||
|
}
|
||||||
</script>";
|
</script>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1212,27 +1216,28 @@
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
print "<script type=\"text/javascript\">
|
print "
|
||||||
document.onkeydown = hotkey_handler;
|
<script type=\"text/javascript\">
|
||||||
// if (parent.daemon_enabled) parent.updateTitle('$feed_title');
|
try {
|
||||||
update_all_counters('$feed');
|
document.onkeydown = hotkey_handler;
|
||||||
</script>";
|
parent.update_all_counters(\"$feed\");
|
||||||
|
} catch (e) {
|
||||||
print '
|
exception_error(\"viewfeed/footer1\", e);
|
||||||
<script type="text/javascript">
|
}
|
||||||
|
|
||||||
/* for IE */
|
/* for IE */
|
||||||
function statechange() {
|
function statechange() {
|
||||||
if (document.readyState == "interactive") init();
|
if (document.readyState == \"interactive\") init();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.readyState) {
|
if (document.readyState) {
|
||||||
if (document.readyState == "interactive" || document.readyState == "complete") {
|
if (document.readyState == \"interactive\" || document.readyState == \"complete\") {
|
||||||
init();
|
init();
|
||||||
} else {
|
} else {
|
||||||
document.onreadystatechange = statechange;
|
document.onreadystatechange = statechange;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>';
|
</script>";
|
||||||
|
|
||||||
print "</body></html>";
|
print "</body></html>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue