mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Update permalink structure input when selecting a structure with the radio buttons.
Props nacin fixes #22645 git-svn-id: https://develop.svn.wordpress.org/trunk@22931 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f3da142f01
commit
addc12cbf0
@ -56,7 +56,7 @@ function options_permalink_add_js() {
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('input:radio.tog').change(function() {
|
||||
jQuery('.permalink-structure input:radio').change(function() {
|
||||
if ( 'custom' == this.value )
|
||||
return;
|
||||
jQuery('#permalink_structure').val( this.value );
|
||||
@ -189,7 +189,7 @@ $structures = array(
|
||||
);
|
||||
?>
|
||||
<h3><?php _e('Common Settings'); ?></h3>
|
||||
<table class="form-table">
|
||||
<table class="form-table permalink-structure">
|
||||
<tr>
|
||||
<th><label><input name="selection" type="radio" value="" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></th>
|
||||
<td><code><?php echo get_option('home'); ?>/?p=123</code></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user