From 44258fa967a8804a80d84ebd845a8668c18ca890 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 24 Dec 2009 12:20:01 +0300 Subject: remove obsolete methods to call init(); code cleanup --- opera.css | 27 --------------------------- prefs.js | 3 --- prefs.php | 37 +++++-------------------------------- tt-rss.js | 6 +----- tt-rss.php | 38 +++----------------------------------- 5 files changed, 9 insertions(+), 102 deletions(-) delete mode 100644 opera.css diff --git a/opera.css b/opera.css deleted file mode 100644 index 27e748dc2..000000000 --- a/opera.css +++ /dev/null @@ -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; -} */ - diff --git a/prefs.js b/prefs.js index 820c31eac..8c0d2fbe1 100644 --- a/prefs.js +++ b/prefs.js @@ -1217,9 +1217,6 @@ function init() { try { - if (arguments.callee.done) return; - arguments.callee.done = true; - if (getURLParam('debug')) { Element.show("debug_output"); debug('debug mode activated'); diff --git a/prefs.php b/prefs.php index 91f813b85..d8118c4c1 100644 --- a/prefs.php +++ b/prefs.php @@ -49,14 +49,13 @@ - + + @@ -85,13 +84,6 @@ - -
@@ -108,10 +100,6 @@ window.onload = init;
- -
?
@@ -179,20 +167,5 @@ window.onload = init; - - diff --git a/tt-rss.js b/tt-rss.js index 408eb3913..af5c6fae0 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -385,11 +385,6 @@ function init() { 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(); disableContainerChildren("headlinesToolbar", true); @@ -512,6 +507,7 @@ function init_second_stage() { delCookie("ttrss_vf_test"); // document.onresize = resize_headlines; + window.onresize=resize_headlines; var toolbar = document.forms["main_toolbar_form"]; diff --git a/tt-rss.php b/tt-rss.php index 9caa666dd..fd3c88d4e 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -51,16 +51,12 @@ - @@ -93,13 +89,6 @@ - - @@ -285,12 +274,6 @@ window.onload = init; - - - -
@@ -331,20 +314,5 @@ window.onload = init; - - -- cgit v1.2.3