Delete unused things

This commit is contained in:
2023-05-24 23:04:28 +01:00
parent 2f5e7b8366
commit 01fe242172
2 changed files with 0 additions and 11 deletions

View File

@@ -12,7 +12,6 @@
{{ block.super }}
<script src="{% static 'js/selects.js' %}"></script>
<script src="{% static 'js/easymde.min.js' %}"></script>
<script src="{% static 'js/interaction.js' %}"></script>
{% endblock %}
{% block js %}
@@ -35,11 +34,6 @@
$(document).find(".selectpicker").selectpicker().each(function(){initPicker($(this))});
});
</script>
<script>
$(document).ready(function () {
setupMDE('#id_comments');
});
</script>
<script src="{% static "js/tooltip.js" %}"></script>
<script>
$(function () {

View File

@@ -6,11 +6,6 @@ function setupItemTable(items_json) {
newitem = -1;
}
function nl2br(str, is_xhtml) {
var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br />' : '<br>';
return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1'+ breakTag +'$2');
}
function escapeHtml(str) {
return $('<div/>').text(str).html();
}