This commit is contained in:
r888888888
2017-10-09 14:45:23 -07:00
parent 12a815a53b
commit cbf9d03bbf
3 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@
$("#recent-pools li").click(function(e) { $("#recent-pools li").click(function(e) {
e.preventDefault(); e.preventDefault();
$("#pool_name").val($(this).html()); $("#pool_name").val($(this).attr("data-value"));
}); });
} }

View File

@@ -17,7 +17,7 @@
<h1>Recent Pools</h1> <h1>Recent Pools</h1>
<ul id="recent-pools"> <ul id="recent-pools">
<% recent_updated_pools.each do |pool| %> <% recent_updated_pools.each do |pool| %>
<li><%= pool.pretty_name %></li> <%= content_tag :li, pool.pretty_name, "data-value" => pool.name %>
<% end %> <% end %>
</ul> </ul>
</div> </div>

View File

@@ -74,7 +74,7 @@ h2. Update
The base URL is PUT /posts/$id.json where $id is the post id. 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[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[source][/b] If this is a URL, Danbooru will download the file.
* [b]post[parent_id][/b] The ID of the parent post. * [b]post[parent_id][/b] The ID of the parent post.