Tons of anthology work with notes and scripts. Updated DE's tamplates. Small script changes as well.

This commit is contained in:
Norm Rasmussen
2023-11-17 17:18:13 -05:00
parent c3aedce0d1
commit 09053c34cd
32 changed files with 22644 additions and 575 deletions

View File

@ -20,7 +20,7 @@
{% for category_name in category_names %}
{% assign stripped_category_name = category_name | strip %}
{% if stripped_category_name == category.name %}
{% include 'course' %}
{% include 'catalog_course' %}
{% endif %}
{% endfor %}
{%- endfor -%}

View File

@ -228,24 +228,25 @@
})*/
$( window ).on( "load", function() {
if ($(".session-dialog__footer-buttons button").length) {
if ($(".session-dialog__footer-buttons button[data-test='unregister-button']").length) {
console.log("show link")
$(".session-link").css("display", "inline-block")
}
if ($(".session-dialog__footer-buttons button").attr("data-test") == "unregister-button") {
$(".session-link").css("display", "inline-block")
$(".session-dialog__footer-buttons").click(function(e) {
const unregisterButton = $(this).find(".uk-button[data-test='unregister-button']");
const registerButton = $(this).find(".uk-button[data-test='register-button']");
if (unregisterButton.length) {
console.log("hide join now")
$(".session-link").hide()
}
$(".session-dialog__footer-buttons").click(function(e) {
const buttonStatus = $(this).find("button").attr("data-test");
if (buttonStatus == "register-button") {
$(".session-link").css("display", "inline-block")
}
if (buttonStatus == "unregister-button") {
$(".session-link").hide()
}
})
}
if (registerButton.length) {
console.log("show join now")
$(".session-link").css("display", "inline-block")
}
})
});
</script>