Radio selection smartness. Props filosofo. fixes #1895

git-svn-id: http://svn.automattic.com/wordpress/trunk@3148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-18 09:36:43 +00:00
parent 139a251324
commit 68400673d8
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 } ?>