summaryrefslogtreecommitdiff
path: root/views/new-bookmark.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-bookmark.php
parent76aa9c2bc9d31549e44bc0b10817eb6e252dbe11 (diff)
fix sending category as array
Diffstat (limited to 'views/new-bookmark.php')
-rw-r--r--views/new-bookmark.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/views/new-bookmark.php b/views/new-bookmark.php
index 5590608..00befcc 100644
--- a/views/new-bookmark.php
+++ b/views/new-bookmark.php
@@ -43,7 +43,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
}
?>
@@ -63,10 +63,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(){
@@ -81,7 +81,7 @@ $(function(){
name: $("#note_name").val(),
content: $("#note_content").val(),
category: $("#note_category").val(),
- 'syndicate-to': syndications.join(',')
+ 'syndicate-to': syndications
}, function(data){
var response = JSON.parse(data);