summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-19 20:18:20 +0300
committerAndrew Dolgov <[email protected]>2010-11-19 20:18:20 +0300
commit997429c22813408e15c73ec0ff127f0cc1a9b994 (patch)
treef09415bf0c12edd61c7bfab400158d661d0fae97 /tt-rss.js
parent7b5e74c75c4d5f367f0c3bf79020021ee1a807b3 (diff)
add experimental support for feedlist popup menu
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js29
1 files changed, 25 insertions, 4 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 56105167e..af9f46726 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -115,11 +115,28 @@ function updateFeedList() {
id: "feedTree",
}, "feedTree");
+/* var menu = new dijit.Menu({id: 'feedMenu'});
+
+ menu.addChild(new dijit.MenuItem({
+ label: "Simple menu item"
+ }));
+
+// menu.bindDomNode(tree.domNode); */
+
+ var tmph = dojo.connect(dijit.byId('feedMenu'), '_openMyself', function (event) {
+ console.log(dijit.getEnclosingWidget(event.target));
+ dojo.disconnect(tmph);
+ });
+
$("feeds-holder").appendChild(tree.domNode);
var tmph = dojo.connect(tree, 'onLoad', function() {
dojo.disconnect(tmph);
Element.hide("feedlistLoading");
+
+// var node = dijit.byId("feedTree")._itemNodesMap['FEED:-2'][0].domNode
+// menu.bindDomNode(node);
+
loading_set_progress(25);
});
@@ -1100,17 +1117,21 @@ function handle_rpc_reply(transport, scheduled_call) {
return true;
}
-function scheduleFeedUpdate() {
+function scheduleFeedUpdate(id, is_cat) {
try {
+ if (!id) {
+ id = getActiveFeedId();
+ is_cat = activeFeedIsCat();
+ }
- if (!getActiveFeedId()) {
+ if (!id) {
alert(__("Please select some feed first."));
return;
}
var query = "?op=rpc&subop=scheduleFeedUpdate&id=" +
- param_escape(getActiveFeedId()) +
- "&is_cat=" + param_escape(activeFeedIsCat());
+ param_escape(id) +
+ "&is_cat=" + param_escape(is_cat);
console.log(query);