add getContentContext() and vieContentUrl() functions"
This commit is contained in:
parent
e688bab8ec
commit
0bd411db91
12
functions.js
12
functions.js
|
@ -1302,6 +1302,14 @@ function getFeedsContext() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getContentContext() {
|
||||||
|
try {
|
||||||
|
return getMainContext().frames["content-frame"];
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("getContentContext", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function getHeadlinesContext() {
|
function getHeadlinesContext() {
|
||||||
try {
|
try {
|
||||||
|
@ -1410,3 +1418,7 @@ function getFeedName(id, is_cat) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function viewContentUrl(url) {
|
||||||
|
getContentContext().location = url;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue