mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 12:11:50 +00:00
remove obsolete methods to call init(); code cleanup
This commit is contained in:
27
opera.css
27
opera.css
@@ -1,27 +0,0 @@
|
|||||||
table.main td.headlines {
|
|
||||||
height : 35%;
|
|
||||||
border-width : 0px 0px 1px 1px;
|
|
||||||
border-style : solid;
|
|
||||||
border-color : #c0c0c0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* #infoBoxShadow {
|
|
||||||
background-image : url("images/overlay.png");
|
|
||||||
left : 0;
|
|
||||||
top : 0;
|
|
||||||
height : 100%;
|
|
||||||
width : 100%;
|
|
||||||
z-index : 3;
|
|
||||||
position : absolute;
|
|
||||||
display : none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#infoBox {
|
|
||||||
font-size : small;
|
|
||||||
position : relative;
|
|
||||||
top : 30%;
|
|
||||||
left : 30%;
|
|
||||||
width : 30%;
|
|
||||||
padding-bottom : 5px;
|
|
||||||
} */
|
|
||||||
|
|
||||||
3
prefs.js
3
prefs.js
@@ -1217,9 +1217,6 @@ function init() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (arguments.callee.done) return;
|
|
||||||
arguments.callee.done = true;
|
|
||||||
|
|
||||||
if (getURLParam('debug')) {
|
if (getURLParam('debug')) {
|
||||||
Element.show("debug_output");
|
Element.show("debug_output");
|
||||||
debug('debug mode activated');
|
debug('debug mode activated');
|
||||||
|
|||||||
35
prefs.php
35
prefs.php
@@ -51,12 +51,11 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
Event.observe(window, 'load', function() {
|
||||||
if (navigator.userAgent.match("Opera")) {
|
init();
|
||||||
document.write('<link rel="stylesheet" type="text/css" href="opera.css">');
|
});
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="ttrssPrefs">
|
<body id="ttrssPrefs">
|
||||||
@@ -85,13 +84,6 @@
|
|||||||
|
|
||||||
<img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/>
|
<img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/>
|
||||||
|
|
||||||
<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>
|
<ul id="debug_output" style='display : none'><li> </li></ul>
|
||||||
|
|
||||||
<div id="prefHeader">
|
<div id="prefHeader">
|
||||||
@@ -108,10 +100,6 @@ window.onload = init;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="prefTabs">
|
<div id="prefTabs">
|
||||||
<!-- <div class="return">
|
|
||||||
<a href="#" onclick="gotoMain()"><?php echo __('Exit preferences') ?></a>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<div class='prefKbdHelp'>
|
<div class='prefKbdHelp'>
|
||||||
<img src="images/small_question.png" alt="?"/> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php echo __("Keyboard shortcuts") ?></a>
|
<img src="images/small_question.png" alt="?"/> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php echo __("Keyboard shortcuts") ?></a>
|
||||||
</div>
|
</div>
|
||||||
@@ -179,20 +167,5 @@ window.onload = init;
|
|||||||
|
|
||||||
<?php db_close($link); ?>
|
<?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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -385,11 +385,6 @@ function init() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// this whole shebang is based on http://www.birnamdesigns.com/misc/busted2.html
|
|
||||||
|
|
||||||
if (arguments.callee.done) return;
|
|
||||||
arguments.callee.done = true;
|
|
||||||
|
|
||||||
init_gears();
|
init_gears();
|
||||||
|
|
||||||
disableContainerChildren("headlinesToolbar", true);
|
disableContainerChildren("headlinesToolbar", true);
|
||||||
@@ -512,6 +507,7 @@ function init_second_stage() {
|
|||||||
delCookie("ttrss_vf_test");
|
delCookie("ttrss_vf_test");
|
||||||
|
|
||||||
// document.onresize = resize_headlines;
|
// document.onresize = resize_headlines;
|
||||||
|
window.onresize=resize_headlines;
|
||||||
|
|
||||||
var toolbar = document.forms["main_toolbar_form"];
|
var toolbar = document.forms["main_toolbar_form"];
|
||||||
|
|
||||||
|
|||||||
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" charset="utf-8" src="offline.js?<?php echo $dt_add ?>"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="gears_init.js"></script>
|
<script type="text/javascript" src="gears_init.js"></script>
|
||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
Event.observe(window, 'load', function() {
|
||||||
if (navigator.userAgent.match("Opera")) {
|
init();
|
||||||
document.write('<link rel="stylesheet" type="text/css" href="opera.css">');
|
});
|
||||||
}
|
|
||||||
window.onresize=resize_headlines;
|
|
||||||
//]]>
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -93,13 +89,6 @@
|
|||||||
|
|
||||||
<div id="dialog_overlay" style="display : none"> </div>
|
<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>
|
<ul id="debug_output" style='display : none'><li> </li></ul>
|
||||||
|
|
||||||
<div id="infoBoxShadow" style="display : none"><div id="infoBox"> </div></div>
|
<div id="infoBoxShadow" style="display : none"><div id="infoBox"> </div></div>
|
||||||
@@ -285,12 +274,6 @@ window.onload = init;
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- <input class="button" type="submit"
|
|
||||||
onclick="quickMenuGo('qmcSearch')" value="Search (tmp)"> -->
|
|
||||||
|
|
||||||
<!-- <input class="button" type="submit"
|
|
||||||
onclick="catchupCurrentFeed()" value="Mark as read"> -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?>
|
<?php if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?>
|
||||||
@@ -331,20 +314,5 @@ window.onload = init;
|
|||||||
|
|
||||||
<?php db_close($link); ?>
|
<?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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user