Mercurial > hg > soundsoftware-site
diff public/javascripts/repository.js @ 1355:3d01be97cb5a bug_635
Fix routes and safe attributes for the external repo settings
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 18 Jul 2013 12:13:20 +0100 |
parents | f5860b03d365 |
children |
line wrap: on
line diff
--- a/public/javascripts/repository.js Thu Jul 18 11:18:35 2013 +0100 +++ b/public/javascripts/repository.js Thu Jul 18 12:13:20 2013 +0100 @@ -1,7 +1,8 @@ -function toggle_ext_url(){ - if($('repository_is_external').checked) - $('repository_external_url').enable(); - else - $('repository_external_url').disable(); +function toggle_ext_url() { + if (document.getElementById('repository_is_external').checked) { + document.getElementById('repository_external_url').disabled = false; + } else { + document.getElementById('repository_external_url').disabled = true; + } }