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
<% recent_updated_pools.each do |pool| %>
- - <%= pool.pretty_name %>
+ <%= content_tag :li, pool.pretty_name, "data-value" => pool.name %>
<% end %>
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.