Changeset 10237 for trunk/wp-admin/press-this.php
- Timestamp:
- 12/21/2008 12:34:12 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/press-this.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r10127 r10237 350 350 ?> 351 351 <script type="text/javascript"> 352 jQuery('#tags-input').hide();353 tag_update_quickclicks();354 // add the quickadd form355 jQuery('#jaxtag').prepend('<span id="ajaxtag"><input type="text" name="newtag" id="newtag" class="form-input-tip" size="16" autocomplete="off" value="'+postL10n.addTag+'" /><input type="submit" class="button" id="tagadd" value="' + postL10n.add + '" tabindex="3" onclick="return false;" /><input type="hidden"/><input type="hidden"/><span class="howto">'+postL10n.separate+'</span></span>');356 357 jQuery('#tagadd').click( tag_flush_to_text );358 jQuery('#newtag').focus(function() {359 if ( this.value == postL10n.addTag )360 jQuery(this).val( '' ).removeClass( 'form-input-tip' );361 });362 jQuery('#newtag').blur(function() {363 if ( this.value == '' )364 jQuery(this).val( postL10n.addTag ).addClass( 'form-input-tip' );365 });366 // auto-save tags on post save/publish367 jQuery('#publish').click( tag_save_on_publish );368 jQuery('#save').click( tag_save_on_publish );369 352 function insert_plain_editor(text) { 370 353 edCanvas = document.getElementById('content'); … … 493 476 </div> 494 477 495 <div class="stuffbox">496 <h 2><?php _e('Tags') ?></h2>478 <div id="tagsdiv-post_tag" class="postbox" > 479 <h3><span><?php _e('Post Tags'); ?></span></h3> 497 480 <div class="inside"> 498 499 <div id="jaxtag"> 500 <label class="hidden" for="newtag"><?php _e('Tags'); ?></label> 501 <input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /> 481 <div class="tagsdiv" id="post_tag"> 482 <p class="jaxtag"> 483 <label class="hidden" for="newtag"><?php _e('Post Tags'); ?></label> 484 <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" /> 485 <span class="ajaxtag" style="display:none;"> 486 <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _e('Add new tag'); ?>" /> 487 <input type="button" class="button tagadd" value="Add" tabindex="3" /> 488 </span> 489 </p> 490 <div class="tagchecklist"></div> 502 491 </div> 503 < div id="tagchecklist"></div>492 <p class="tagcloud-link"><a href="#titlediv" class="tagcloud-link" id="link-post_tag"><?php _e('Choose from the most used tags in Post Tags'); ?></a></p> 504 493 </div> 505 494 </div> … … 510 499 <input class="button" type="submit" name="draft" value="<?php _e('Save Draft') ?>" id="save" /> 511 500 <input class="button-primary" type="submit" name="publish" value="<?php _e('Publish') ?>" id="publish" /> 512 <img src="images/loading-publish.gif" alt="" id="saving" style="display:none;" />501 <img src="images/loading-publish.gif" alt="" id="saving" style="display:none;" /> 513 502 </p> 514 503 </div> … … 543 532 <?php wp_print_scripts( 'quicktags' ); ?> 544 533 <?php add_filter('the_editor_content', 'wp_richedit_pre'); ?> 545 <a id="edButtonHTML" onclick="switchEditors.go(' <?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a>546 <a id="edButtonPreview" class="active" onclick="switchEditors.go(' <?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a>547 <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go(' <?php echo $id; ?>')" /></div>534 <a id="edButtonHTML" onclick="switchEditors.go('content', 'html');"><?php _e('HTML'); ?></a> 535 <a id="edButtonPreview" class="active" onclick="switchEditors.go('content', 'tinymce');"><?php _e('Visual'); ?></a> 536 <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('content')" /></div> 548 537 </li> 549 538 <?php } ?> … … 560 549 </div> 561 550 </form> 551 <?php do_action('admin_print_footer_scripts'); ?> 562 552 </body> 563 553 </html>
Note: See TracChangeset
for help on using the changeset viewer.