summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-04-29 08:00:07 -0700
committerAaron Parecki <aaron@parecki.com>2016-04-29 08:00:07 -0700
commit35aa1b78c8c7085a43be556753c6e045d01ce302 (patch)
treef409866e783216fc917d1654aa4f3c30aff050b4 /views/new-post.php
parent34819e55efbb2c567e71e52d65da61c36e88ad75 (diff)
fix when multiple syndication are checked
Diffstat (limited to 'views/new-post.php')
-rw-r--r--views/new-post.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/new-post.php b/views/new-post.php
index 57b7521..a059ea0 100644
--- a/views/new-post.php
+++ b/views/new-post.php
@@ -213,7 +213,9 @@ $(function(){
}
}
if(syndications.length > 0) {
- formData.append("syndicate-to", syndications);
+ for(var i in syndications) {
+ formData.append("syndicate-to[]", syndications[i]);
+ }
}
if(v=$("#note_slug").val()) {
formData.append("slug", v);