add events for posts pages

This commit is contained in:
Albert Yi
2018-10-22 17:19:32 -07:00
parent 08e3051d31
commit 1b9e3d687d
5 changed files with 31 additions and 30 deletions

View File

@@ -13,19 +13,3 @@
<%= hidden_field_tag "ms", "1" %>
<% end %>
</section>
<% content_for(:html_header) do %>
<script>
/*$(function() {
$("#tags").on("keypress autocompleteclose", function(e) {
if (!$(this).data("fakeWidth")) {
$(this).data("fakeWidth", $('<span>').hide().appendTo(document.body));
}
var width = $(this).data("fakeWidth").text($(this).val()).css('font', $(this).css("font")).width() + 15;
if (width > $(this).width()) {
$(this).width(width);
}
});
});*/
</script>
<% end %>