summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-02-10 18:48:57 -0800
committerAaron Parecki <aaron@parecki.com>2016-02-10 18:48:57 -0800
commitbcfb8731ca342bf3d5b8da0024c273c7adb7c1cb (patch)
tree91c2657bdfab2121dac5874bafc5175ac13511f9 /views/new-post.php
parent76aa9c2bc9d31549e44bc0b10817eb6e252dbe11 (diff)
fix sending category as array
Diffstat (limited to 'views/new-post.php')
-rw-r--r--views/new-post.php10
1 files changed, 4 insertions, 6 deletions
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 '</ul>';
} else {
- ?><div class="bs-callout bs-callout-warning">No syndication targets were found on your site.
+ ?><div class="bs-callout bs-callout-warning">No syndication targets were found on your site.
You can provide a <a href="/docs#syndication">list of supported syndication targets</a> that will appear as checkboxes here.</div><?php
}
?>
@@ -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(){
<?= partial('partials/syndication-js') ?>
</script>
-
-