From 0bd411db918369fe826dd9e7ee5754c165faa719 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Aug 2006 12:33:07 +0100 Subject: [PATCH] add getContentContext() and vieContentUrl() functions" --- functions.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/functions.js b/functions.js index 3e0b0914..6fbabb69 100644 --- a/functions.js +++ b/functions.js @@ -1302,6 +1302,14 @@ function getFeedsContext() { } } +function getContentContext() { + try { + return getMainContext().frames["content-frame"]; + } catch (e) { + exception_error("getContentContext", e); + } +} + function getHeadlinesContext() { try { @@ -1410,3 +1418,7 @@ function getFeedName(id, is_cat) { return null; } } + +function viewContentUrl(url) { + getContentContext().location = url; +} -- 2.39.5