mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 10:46:49 +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() {
|
||||
try {
|
||||
@@ -1410,3 +1418,7 @@ function getFeedName(id, is_cat) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function viewContentUrl(url) {
|
||||
getContentContext().location = url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user