From cc2ac3a86c3935384b297e112b3ad2fc0a5a7c03 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Apr 2019 15:51:05 +0300 Subject: [PATCH] FeedTree: add feed debugger to per-feed context menu --- js/FeedTree.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/FeedTree.js b/js/FeedTree.js index b8e50872a..976848d28 100755 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -64,6 +64,13 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"], CommonDialogs.editFeed(this.getParent().row_id, false); }})); + menu.addChild(new dijit.MenuItem({ + label: __("Debug feed"), + onClick: function() { + window.open("backend.php?op=feeds&method=update_debugger&feed_id=" + this.getParent().row_id + + "&csrf_token=" + App.getInitParam("csrf_token")); + }})); + /* menu.addChild(new dijit.MenuItem({ label: __("Update feed"), onClick: function() {