mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
remove obsolete methods to call init(); code cleanup
This commit is contained in:
38
tt-rss.php
38
tt-rss.php
@@ -51,16 +51,12 @@
|
||||
<script type="text/javascript" charset="utf-8" src="offline.js?<?php echo $dt_add ?>"></script>
|
||||
|
||||
<script type="text/javascript" src="gears_init.js"></script>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
if (navigator.userAgent.match("Opera")) {
|
||||
document.write('<link rel="stylesheet" type="text/css" href="opera.css">');
|
||||
}
|
||||
window.onresize=resize_headlines;
|
||||
//]]>
|
||||
Event.observe(window, 'load', function() {
|
||||
init();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -93,13 +89,6 @@
|
||||
|
||||
<div id="dialog_overlay" style="display : none"> </div>
|
||||
|
||||
<script type="text/javascript">
|
||||
if (document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", init, null);
|
||||
}
|
||||
window.onload = init;
|
||||
</script>
|
||||
|
||||
<ul id="debug_output" style='display : none'><li> </li></ul>
|
||||
|
||||
<div id="infoBoxShadow" style="display : none"><div id="infoBox"> </div></div>
|
||||
@@ -285,12 +274,6 @@ window.onload = init;
|
||||
|
||||
</form>
|
||||
|
||||
<!-- <input class="button" type="submit"
|
||||
onclick="quickMenuGo('qmcSearch')" value="Search (tmp)"> -->
|
||||
|
||||
<!-- <input class="button" type="submit"
|
||||
onclick="catchupCurrentFeed()" value="Mark as read"> -->
|
||||
|
||||
</div>
|
||||
|
||||
<?php if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?>
|
||||
@@ -331,20 +314,5 @@ window.onload = init;
|
||||
|
||||
<?php db_close($link); ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
/* for IE */
|
||||
function statechange() {
|
||||
if (document.readyState == "interactive") init();
|
||||
}
|
||||
|
||||
if (document.readyState) {
|
||||
if (document.readyState == "interactive" || document.readyState == "complete") {
|
||||
init();
|
||||
} else {
|
||||
document.onreadystatechange = statechange;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user