Changeset 7411
- Timestamp:
- 03/20/2008 04:39:23 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/widgets.js
r7275 r7411 12 12 var t = $(this); 13 13 if ( t.is(':visible') ) { 14 if ( disableFields ) { t.find( ':enabled' ).not( '[name="widget-id[]"] ' ).attr( 'disabled', 'disabled' ); }14 if ( disableFields ) { t.find( ':enabled' ).not( '[name="widget-id[]"], [name*="[submit]"]' ).attr( 'disabled', 'disabled' ); } 15 15 li.css( 'marginLeft', 0 ); 16 16 t.siblings('h4').children('a').text( widgetsL10n.edit ); … … 26 26 27 27 if ( t.is(':visible') ) { 28 if ( disableFields ) { t.find( ':enabled' ).not( '[name="widget-id[]"] ' ).attr( 'disabled', 'disabled' ); }28 if ( disableFields ) { t.find( ':enabled' ).not( '[name="widget-id[]"], [name*="[submit]"]' ).attr( 'disabled', 'disabled' ); } 29 29 if ( width > 250 ) 30 30 li.animate( { marginLeft: 0 } ); -
trunk/wp-includes/script-loader.php
r7406 r7411 184 184 'confirmText' => __("Are you sure you want to delete the file '%title%'?\nClick ok to delete or cancel to go back.") 185 185 ) ); 186 $this->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '2008031 3' );186 $this->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20080319' ); 187 187 $this->localize( 'admin-widgets', 'widgetsL10n', array( 188 188 'add' => __('Add'), -
trunk/wp-includes/widgets.php
r7362 r7411 639 639 <input class="widefat" id="text-title-<?php echo $number; ?>" name="widget-text[<?php echo $number; ?>][title]" type="text" value="<?php echo $title; ?>" /> 640 640 <textarea class="widefat" rows="16" cols="20" id="text-text-<?php echo $number; ?>" name="widget-text[<?php echo $number; ?>][text]"><?php echo $text; ?></textarea> 641 <input type="hidden" id="text-submit-<?php echo $number; ?>" name="text-submit-<?php echo $number; ?>" value="1" />641 <input type="hidden" name="widget-text[<?php echo $number; ?>][submit]" value="1" /> 642 642 </p> 643 643 <?php … … 799 799 </p> 800 800 801 <input type="hidden" id="categories-submit-<?php echo $number; ?>" name="categories-submit-<?php echo $number; ?>" value="1" />801 <input type="hidden" name="widget-categories[<?php echo $number; ?>][submit]" value="1" /> 802 802 <?php 803 803 } … … 1255 1255 </label> 1256 1256 </p> 1257 <input type="hidden" id="rss-submit-<?php echo $number; ?>" name="rss-submit-<?php echo $number; ?>" value="1" />1257 <input type="hidden" name="widget-rss[<?php echo $number; ?>][submit]" value="1" /> 1258 1258 <?php 1259 1259 endif; … … 1484 1484 <p> 1485 1485 <input class="widefat" id="widget-many-something-<?php echo $number; ?>" name="widget-many[<?php echo $number; ?>][something]" type="text" value="<?php echo $data; ?>" /> 1486 <input type="hidden" id="widget-many-submit-<?php echo $number; ?>" name="widget-many -<?php echo $number; ?>" value="1" />1486 <input type="hidden" id="widget-many-submit-<?php echo $number; ?>" name="widget-many[<?php echo $number; ?>][submit]" value="1" /> 1487 1487 </p> 1488 1488 <?php
Note: See TracChangeset
for help on using the changeset viewer.