Radio selection smartness. Props filosofo. fixes #1895

git-svn-id: https://develop.svn.wordpress.org/trunk@3148 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-18 09:36:43 +00:00
parent f19c9252cd
commit 92c3cca19c
1 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,9 @@ structure.value = inputs;
function blurry() {
if (!document.getElementById) return;
var structure = document.getElementById('permalink_structure');
structure.onfocus = function () { document.getElementById('custom_selection').checked = 'checked'; }
var aInputs = document.getElementsByTagName('input');
for (var i = 0; i < aInputs.length; i++) {
@ -135,7 +138,7 @@ $structures = array(
</p>
<p>
<label>
<input name="selection" type="radio" value="custom" class="tog"
<input name="selection" id="custom_selection" type="radio" value="custom" class="tog"
<?php if ( !in_array($permalink_structure, $structures) ) { ?>
checked="checked"
<?php } ?>