From cbf9d03bbf5d642bece7b7779caa1ac0413b2372 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 9 Oct 2017 14:45:23 -0700 Subject: [PATCH] fixes #3320 --- app/assets/javascripts/pools.js | 2 +- app/views/pool_elements/_new.html.erb | 2 +- doc/api.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/pools.js b/app/assets/javascripts/pools.js index b5e1bf24b..5241af28d 100644 --- a/app/assets/javascripts/pools.js +++ b/app/assets/javascripts/pools.js @@ -66,7 +66,7 @@ $("#recent-pools li").click(function(e) { e.preventDefault(); - $("#pool_name").val($(this).html()); + $("#pool_name").val($(this).attr("data-value")); }); } diff --git a/app/views/pool_elements/_new.html.erb b/app/views/pool_elements/_new.html.erb index 2be3d4cfa..bd9f5560d 100644 --- a/app/views/pool_elements/_new.html.erb +++ b/app/views/pool_elements/_new.html.erb @@ -17,7 +17,7 @@

Recent Pools

diff --git a/doc/api.txt b/doc/api.txt index e75ad7b2a..1ac1ef890 100644 --- a/doc/api.txt +++ b/doc/api.txt @@ -74,7 +74,7 @@ h2. Update The base URL is PUT /posts/$id.json where $id is the post id. * [b]post[tag_string][/b] A space delimited list of tags. -* [b]post[rating][/b] The rating for the post. Can be: safe, questionable, or explicit. +* [b]post[rating][/b] The rating for the post. Can be: s (for safe), q (for questionable), or e (for explicit). * [b]post[source][/b] If this is a URL, Danbooru will download the file. * [b]post[parent_id][/b] The ID of the parent post.