Tons of anthology work with notes and scripts. Updated DE's tamplates. Small script changes as well.
This commit is contained in:
@ -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>
|
||||
Reference in New Issue
Block a user