add getContentContext() and vieContentUrl() functions"

This commit is contained in:
Andrew Dolgov 2006-08-30 12:33:07 +01:00
parent e688bab8ec
commit 0bd411db91
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}