Merge branch 'main' of https://github.com/frappe/community into cleanup

This commit is contained in:
pateljannat
2021-07-15 17:36:31 +05:30
15 changed files with 650 additions and 82 deletions

View File

@@ -22,16 +22,3 @@
</div>
</div>
{% endblock %}
{% block script %}
<script>
frappe.ready(() => {
$(".course-card-title").each((i, element) => {
var title = $(element).text();
var length = $(window).width() <= 375 ? 60 : 65;
var suffix = title.length > length ? "..." : "";
$(element).text(title.substring(0, length) + suffix);
})
})
</script>
{% endblock %}