add referer prop

This commit is contained in:
Albert Yi
2018-10-22 17:21:26 -07:00
parent 1b9e3d687d
commit 11e75aec2a
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -201,7 +201,8 @@
"size": <%= @post.file_size %>, "size": <%= @post.file_size %>,
"fav_count": <%= @post.fav_count %>, "fav_count": <%= @post.fav_count %>,
"created_at": <%= @post.created_at.strftime('%F %T').to_json %>, "created_at": <%= @post.created_at.strftime('%F %T').to_json %>,
"tags": <%= @post.presenter.humanized_essential_tag_string.to_json %> "tags": <%= @post.presenter.humanized_essential_tag_string.to_json %>,
"referer": <%= request.referer.to_json %>
}); });
}); });
</script> </script>