Changeset 9326 for trunk/wp-admin/press-this.php
- Timestamp:
- 10/24/2008 05:20:06 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/press-this.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r9295 r9326 117 117 jQuery('.select').click(function() { 118 118 append_editor(jQuery('#embed-code').val()); 119 jQuery('#extra_fields').hide(); 120 jQuery('#extra_fields').html(''); 119 121 }); 120 122 jQuery('.close').click(function() { 121 123 jQuery('#extra_fields').hide(); 124 jQuery('#extra_fields').html(''); 122 125 }); 123 126 </script> … … 274 277 pick(src, desc); 275 278 jQuery('#extra_fields').hide(); 279 jQuery('#extra_fields').html(''); 276 280 return false; 277 281 } … … 281 285 jQuery('.close').click(function() { 282 286 jQuery('#extra_fields').hide(); 287 jQuery('#extra_fields').html(''); 283 288 }); 284 289 jQuery('#img_container').html(strtoappend); … … 352 357 switch(tab_name) { 353 358 case 'video' : 359 jQuery('#extra_fields').html(''); 354 360 jQuery('#extra_fields').show(); 355 361 jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']); ?>', { ajax: 'video', s: '<?php echo attribute_escape($selection); ?>'}, function() { … … 377 383 break; 378 384 case 'photo' : 379 if(jQuery('#extra_fields').css('display') == 'none') {385 jQuery('#extra_fields').html(''); 380 386 jQuery('#extra_fields').show(); 381 387 jQuery('#extra_fields').before('<p id="waiting"><img src="images/loading.gif" alt="" /><?php echo js_escape( __( 'Loading...' ) ); ?></p>'); … … 390 396 } 391 397 }); 392 } else { 393 jQuery('#extra_fields').hide(); 394 } 398 395 399 return false; 396 400 break; … … 500 504 <li id="photo_button"><a href="#" class="button"><?php _e( 'Add Photo' ); ?></a></li> 501 505 <li id="video_button"><a href="#" class="button"><?php _e( 'Add Video' ); ?></a></li> 502 <li id="switcher"><?php if ( user_can_richedit() ) { 503 $wp_default_editor = wp_default_editor(); ?> 504 <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div> 505 <?php if ( 'html' == $wp_default_editor ) { 506 add_filter('the_editor_content', 'wp_htmledit_pre'); ?> 507 <a id="edButtonHTML" class="active" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a> 508 <a id="edButtonPreview" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a> 509 <?php } else { 510 add_filter('the_editor_content', 'wp_richedit_pre'); ?> 506 <li id="switcher"> 507 <?php wp_print_scripts( 'quicktags' ); ?> 508 509 <?php add_filter('the_editor_content', 'wp_richedit_pre'); ?> 511 510 <a id="edButtonHTML" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a> 512 511 <a id="edButtonPreview" class="active" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a> 513 <?php }514 } ?></li>512 <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div> 513 </li> 515 514 </ul> 516 515 <div id="quicktags"> 516 517 518 </div> 519 517 520 <h2 id="content_type"><label for="content"><?php _e('Post') ?></label></h2> 518 521
Note: See TracChangeset
for help on using the changeset viewer.