mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 07:41:29 +00:00
add getContentContext() and vieContentUrl() functions"
This commit is contained in:
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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user