add getContentContext() and vieContentUrl() functions"

master
Andrew Dolgov 18 years ago
parent e688bab8ec
commit 0bd411db91

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

Loading…
Cancel
Save