disable common searches

This commit is contained in:
r888888888
2017-11-10 15:26:56 -08:00
parent 5e247df8ec
commit 354247e3c7
2 changed files with 5 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
<%= render "posts/partials/index/blacklist" %> <%= render "posts/partials/index/blacklist" %>
<%= raw common_searches_html(CurrentUser.user) %> <%#= raw common_searches_html(CurrentUser.user) %>
<section id="tag-box"> <section id="tag-box">
<h1>Tags</h1> <h1>Tags</h1>

View File

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