add user searches

This commit is contained in:
r888888888
2016-08-23 18:20:21 -07:00
parent 6d20ecb20d
commit c3b78b1752
8 changed files with 38 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
<section id="outer-recent-searches" style="display: none;">
<h1>Recent Searches</h1>
<ul id="recent-searches">
</ul>
</section>
<script type="text/javascript">
$(function() {
$.get("<%= Danbooru.config.report_server %>/user_searches", {
uid: <%= user.id %>,
sig: "<%= sig %>"
}, function(data) {
$("#recent-searches").html(data);
$("#outer-recent-searches").show();
});
});
</script>