Changeset 29259
- Timestamp:
- 07/21/2014 07:09:44 PM (12 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
-
includes/image-edit.php (modified) (1 diff)
-
js/image-edit.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r29206 r29259 171 171 172 172 <input type="hidden" id="imgedit-sizer-<?php echo $post_id; ?>" value="<?php echo $sizer; ?>" /> 173 <input type="hidden" id="imgedit-minthumb-<?php echo $post_id; ?>" value="<?php echo ( get_option('thumbnail_size_w') . ':' . get_option('thumbnail_size_h') ); ?>" />174 173 <input type="hidden" id="imgedit-history-<?php echo $post_id; ?>" value="" /> 175 174 <input type="hidden" id="imgedit-undone-<?php echo $post_id; ?>" value="0" /> -
trunk/src/wp-admin/js/image-edit.js
r28639 r29259 386 386 387 387 setCropSelection : function(postid, c) { 388 var sel, min = $('#imgedit-minthumb-' + postid).val() || '128:128',388 var sel, 389 389 sizer = this.hold.sizer; 390 min = min.split(':');391 390 c = c || 0; 392 391 … … 396 395 $('#imgedit-sel-width-' + postid).val(''); 397 396 $('#imgedit-sel-height-' + postid).val(''); 398 $('#imgedit-selection-' + postid).val('');399 return false;400 }401 402 if ( c.width < (min[0] * sizer) && c.height < (min[1] * sizer) ) {403 this.setDisabled($('.imgedit-crop', '#imgedit-panel-' + postid), 0);404 397 $('#imgedit-selection-' + postid).val(''); 405 398 return false;
Note: See TracChangeset
for help on using the changeset viewer.