From 8dec126e7dd19ebb068b1a4f42804f8c0205af9d Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 30 Mar 2020 10:26:46 -0700 Subject: add channel selection to event interface --- views/partials/syndication-js.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'views/partials/syndication-js.php') diff --git a/views/partials/syndication-js.php b/views/partials/syndication-js.php index 90331ba..ead1889 100644 --- a/views/partials/syndication-js.php +++ b/views/partials/syndication-js.php @@ -26,3 +26,21 @@ function bind_syndication_buttons() { return false; }); } + + +function reload_channels() { + $.getJSON("/micropub/channels", function(data){ + console.log(data); + if(data.channels) { + $("#channel-container").html(''); + for(var i in data.channels) { + var channel = data.channels[i]; + $("#channel-container select").append(''); + } + } else { + + } + console.log(data); + }); +} + -- cgit v1.2.3