diff options
author | Andrew Dolgov <[email protected]> | 2006-09-28 13:00:03 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-09-28 13:00:03 +0100 |
commit | 6b4163cb464534e827b4282f84541d86c8e19ec5 (patch) | |
tree | ebd893ba5c618d5a4ee6c20bc27e5d604d900122 /functions.js | |
parent | 1f64b1be201ee9b23ea52e4021bc5264697dc5b5 (diff) |
css-based layout + required fixes
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/functions.js b/functions.js index 6fbabb69d..ccf2bab16 100644 --- a/functions.js +++ b/functions.js @@ -162,6 +162,8 @@ function hotkey_handler(e) { var keycode; if (!hotkeys_enabled) return; + + return; //fixme disables for now if (window.event) { keycode = window.event.keyCode; @@ -468,8 +470,8 @@ function setActiveFeedId(id) { function parse_counters(reply, scheduled_call) { try { - var f_document = getFeedsContext().document; - var title_obj = getMainContext(); + var f_document = document; + var title_obj = this.window; var feeds_found = 0; @@ -602,7 +604,7 @@ function all_counters_callback() { return; } - debug("in all_counters_callback"); + debug("in all_counters_callback : " + xmlhttp_rpc.responseXML); var reply = xmlhttp_rpc.responseXML.firstChild; @@ -1287,36 +1289,20 @@ function filterCR(e) } function getMainContext() { - if (parent.window != window) { - return parent.window; - } else { - return this.window; - } + return this.window; } function getFeedsContext() { - try { - return getMainContext().frames["feeds-frame"]; - } catch (e) { - exception_error("getFeedsContext", e); - } + return this.window; } function getContentContext() { - try { - return getMainContext().frames["content-frame"]; - } catch (e) { - exception_error("getContentContext", e); - } + return this.window; } function getHeadlinesContext() { - try { - return getMainContext().frames["headlines-frame"]; - } catch (e) { - exception_error("getHeadlinesContext", e); - } + return this.window; } var debug_last_class = "even"; |