summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/options-permalink.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-admin/options-permalink.php')
-rw-r--r--wp-inst/wp-admin/options-permalink.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/wp-inst/wp-admin/options-permalink.php b/wp-inst/wp-admin/options-permalink.php
index aaba9bc..7ef3c46 100644
--- a/wp-inst/wp-admin/options-permalink.php
+++ b/wp-inst/wp-admin/options-permalink.php
@@ -37,6 +37,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++) {
@@ -136,7 +139,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 } ?>