From 3f61541094fb0c6836a6b3afaea58d7bead9ade9 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Thu, 21 Apr 2016 19:34:22 -0700 Subject: accept new json q=syndicate-to response closes #36 --- views/new-post.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'views/new-post.php') diff --git a/views/new-post.php b/views/new-post.php index be5dafb..2c8c9f9 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -38,7 +38,12 @@ if($this->syndication_targets) { echo ''; } else { @@ -181,9 +186,10 @@ $(function(){ $("#btn_post").click(function(){ + // Collect all the syndication buttons that are pressed var syndications = []; $("#syndication-container button.btn-info").each(function(i,btn){ - syndications.push($(btn).data('syndication')); + syndications.push($(btn).data('syndicate-to')); }); var category = csv_to_array($("#note_category").val()); -- cgit v1.2.3