From f74cfded6f2159e593e0c02968ca1db7a93841a0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 May 2008 11:39:48 +0100 Subject: msie-related code cleanup --- functions.js | 10 ++++------ ie6.css | 21 --------------------- ie7.css | 8 -------- prefs.php | 9 --------- tt-rss.js | 42 +++++++++++++++--------------------------- tt-rss.php | 9 --------- 6 files changed, 19 insertions(+), 80 deletions(-) delete mode 100644 ie6.css delete mode 100644 ie7.css diff --git a/functions.js b/functions.js index 79068c0fd..a5c689b10 100644 --- a/functions.js +++ b/functions.js @@ -11,10 +11,6 @@ Array.prototype.remove = function(s) { } } -function is_msie() { - return navigator.userAgent.match("MSIE"); -} - function is_opera() { return window.opera; } @@ -28,7 +24,9 @@ function exception_error(location, e, silent) { msg = "Exception: " + e.name + ", " + e.message + "\nFunction: " + location + "()" + "\nLocation: " + base_fname + ":" + e.lineNumber; - + + } else if (e.description) { + msg = "Exception: " + e.description + "\nFunction: " + location + "()"; } else { msg = "Exception: " + e + "\nFunction: " + location + "()"; } @@ -534,7 +532,7 @@ function parse_counters(reply, scheduled_call) { } } - if (has_img && feed_img && !is_msie()) { + if (has_img && feed_img) { if (!feed_img.src.match(id + ".ico")) { feed_img.src = getInitParam("icons_location") + "/" + id + ".ico"; } diff --git a/ie6.css b/ie6.css deleted file mode 100644 index 0a1aa43a3..000000000 --- a/ie6.css +++ /dev/null @@ -1,21 +0,0 @@ -#infoBoxTitle { - display : none; -} - -#headlinesContainer { - width: expression(((parseInt(document.getElementById("headlines-frame").clientWidth)-2)+'px')); -} - -#headlinesInnerContainer { - position : normal; -} - -div.headlines_normal { - overflow : auto; -} - -div.headlines_cdm { - overflow : auto; -} - - diff --git a/ie7.css b/ie7.css deleted file mode 100644 index 96fd6f49a..000000000 --- a/ie7.css +++ /dev/null @@ -1,8 +0,0 @@ -/* div.prefsTabSelected { - bottom : 1px; -} */ - -table.headlinesList { - width: expression(((parseInt(document.getElementById("headlinesInnerContainer").clientWidth)-0)+'px')); -} - diff --git a/prefs.php b/prefs.php index 76da06048..b75a8b05f 100644 --- a/prefs.php +++ b/prefs.php @@ -46,15 +46,6 @@ - - - - -- cgit v1.2.3