From bcfb8731ca342bf3d5b8da0024c273c7adb7c1cb Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 10 Feb 2016 18:48:57 -0800 Subject: fix sending category as array --- views/new-post.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'views/new-post.php') diff --git a/views/new-post.php b/views/new-post.php index 86d15c9..4453e15 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -34,7 +34,7 @@ } echo ''; } else { - ?>
No syndication targets were found on your site. + ?>
No syndication targets were found on your site. You can provide a list of supported syndication targets that will appear as checkboxes here.
@@ -107,10 +107,10 @@ $(function(){ // ctrl-s to save - $(window).on('keydown', function(e){ + $(window).on('keydown', function(e){ if(e.keyCode == 83 && e.ctrlKey){ $("#btn_post").click(); - } + } }); $("#btn_post").click(function(){ @@ -124,7 +124,7 @@ $(function(){ content: $("#note_content").val(), 'in-reply-to': $("#note_in_reply_to").val(), location: $("#note_location").val(), - category: $("#note_category").val(), + category: csv_to_array($("#note_category").val()), slug: $("#note_slug").val(), 'syndicate-to': syndications }, function(data){ @@ -226,5 +226,3 @@ $(function(){ - - -- cgit v1.2.3