From: Andrew Dolgov Date: Wed, 30 Aug 2006 11:33:07 +0000 (+0100) Subject: add getContentContext() and vieContentUrl() functions" X-Git-Tag: 1.2.3~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0bd411db918369fe826dd9e7ee5754c165faa719;p=tt-rss.git add getContentContext() and vieContentUrl() functions" --- diff --git a/functions.js b/functions.js index 3e0b0914..6fbabb69 100644 --- a/functions.js +++ b/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; +}