Sha256: e9607543c833d9b6c3d04455a4304119fed5100023a0399eaae84921dbe3c81e
Contents?: true
Size: 817 Bytes
Versions: 26
Compression:
Stored size: 817 Bytes
Contents
$(document).ready(() => { if ($(".email-contexts--form").length) { $("#ish_email_context_email_template_id").on('change', (ev) => { const val = ev.target.value window.location.href = AppRouter.new_email_context_with_template_path(val) }) $("#ish_email_context_type").on('change', (ev) => { const val = ev.target.value if (val == 'TYPE_CAMPAIGN') { $(".email-contexts--form .TYPE_SINGLE").css('display', 'none') } else { $(".email-contexts--form .TYPE_SINGLE").css('display', 'block') } }) // on page load: if ($("#ish_email_context_type").val() == 'TYPE_CAMPAIGN') { $(".email-contexts--form .TYPE_SINGLE").css('display', 'none') } else { $(".email-contexts--form .TYPE_SINGLE").css('display', 'block') } } })
Version data entries
26 entries across 26 versions & 1 rubygems