1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:55:55 +00:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Richard Beales
2013-03-21 19:42:53 +00:00
32 changed files with 2225 additions and 1831 deletions

View File

@@ -1824,6 +1824,12 @@ function initHeadlinesMenu() {
openArticleInNewWindow(this.getParent().callerRowId);
}}));
menu.addChild(new dijit.MenuItem({
label: __("Display article URL"),
onClick: function(event) {
displayArticleUrl(this.getParent().callerRowId);
}}));
menu.addChild(new dijit.MenuSeparator());
menu.addChild(new dijit.MenuItem({
@@ -2035,3 +2041,21 @@ function changeScore(id, pic) {
exception_error("changeScore", e);
}
}
function displayArticleUrl(id) {
try {
var query = "op=rpc&method=getlinkbyid&id=" + param_escape(id);
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
var reply = JSON.parse(transport.responseText);
if (reply && reply.link) {
prompt(__("Article URL:"), reply.link);
}
} });
} catch (e) {
exception_error("changeScore", e);
}
}