summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-30 12:33:07 +0100
committerAndrew Dolgov <[email protected]>2006-08-30 12:33:07 +0100
commit0bd411db918369fe826dd9e7ee5754c165faa719 (patch)
tree38f8b19d973cb42adcb75ff2c49f68ce155a64f2 /functions.js
parente688bab8ec1847ff0a0789837b4470fa9435e67f (diff)
add getContentContext() and vieContentUrl() functions"
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js12
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;
+}