diff options
author | Andrew Dolgov <[email protected]> | 2006-08-30 12:33:07 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-08-30 12:33:07 +0100 |
commit | 0bd411db918369fe826dd9e7ee5754c165faa719 (patch) | |
tree | 38f8b19d973cb42adcb75ff2c49f68ce155a64f2 | |
parent | e688bab8ec1847ff0a0789837b4470fa9435e67f (diff) |
add getContentContext() and vieContentUrl() functions"
-rw-r--r-- | functions.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/functions.js b/functions.js index 3e0b09146..6fbabb69d 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; +} |