disable some props

This commit is contained in:
Albert Yi
2018-10-22 17:28:04 -07:00
parent f4cafebd0f
commit 464596fbb4
2 changed files with 6 additions and 6 deletions

View File

@@ -81,9 +81,9 @@
<script> <script>
$(function() { $(function() {
window.Danbooru.mixpanelEvent("Post Search", { window.Danbooru.mixpanelEvent("Post Search", {
"tags": <%= raw params[:tags].to_json %>, //"tags": <%= raw params[:tags].to_json %>,
"page": <%= raw params[:page].to_json %>, "page": <%= raw params[:page].to_json %>,
"referer": <%= raw request.referer.to_json %> //"referer": <%= raw request.referer.to_json %>
}); });
}); });
</script> </script>

View File

@@ -196,13 +196,13 @@
<script> <script>
$(function() { $(function() {
window.Danbooru.mixpanelEvent("Post View", { window.Danbooru.mixpanelEvent("Post View", {
"id": <%= @post.id %>, //"id": <%= @post.id %>,
"rating": '<%= @post.rating %>', "rating": '<%= @post.rating %>',
"size": <%= @post.file_size %>, "size": <%= @post.file_size %>,
"fav_count": <%= @post.fav_count %>, //"fav_count": <%= @post.fav_count %>,
"created_at": <%= raw @post.created_at.strftime('%F %T').to_json %>, "created_at": <%= raw @post.created_at.strftime('%F %T').to_json %>,
"tags": <%= raw @post.presenter.humanized_essential_tag_string.to_json %>, //"tags": <%= raw @post.presenter.humanized_essential_tag_string.to_json %>,
"referer": <%= raw request.referer.to_json %> //"referer": <%= raw request.referer.to_json %>
}); });
}); });
</script> </script>