diff --git a/app/views/learning_objects/_form.html.erb b/app/views/learning_objects/_form.html.erb index 0a9ed4b0d81072e96587730b8708202aa596aa7a..2561430cab7b0f677bc559aaefda06097c21c659 100644 --- a/app/views/learning_objects/_form.html.erb +++ b/app/views/learning_objects/_form.html.erb @@ -74,7 +74,7 @@ linkInput = $("#link-input"); radioButtons.change(function (e) { - if ("Website externo" == $(this).nextSibling) { + if ("Website externo" == ($("input:radio:checked")[0].nextSibling.textContent)) { linkInput.slideDown(); } else { linkInput.slideUp();