Changeset 6834
- Timestamp:
- 02/14/2008 12:51:28 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r6829 r6834 147 147 148 148 <p class="submit"> 149 <input type="submit" name="save" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />149 <input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" /> 150 150 <?php 151 151 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) { -
trunk/wp-admin/js/post.js
r6770 r6834 46 46 } 47 47 48 function tag_save_on_publish() { 49 if ( jQuery('#newtag').val() != postL10n.addTag ) 50 tag_flush_to_text(); 51 } 52 48 53 function tag_press_key( e ) { 49 54 if ( 13 == e.keyCode ) { … … 78 83 jQuery(this).val( postL10n.addTag ).addClass( 'form-input-tip' ); 79 84 }); 85 86 // auto-save tags on post save/publish 87 jQuery('#publish').click( tag_save_on_publish ); 88 jQuery('#save-post').click( tag_save_on_publish ); 80 89 81 90 // auto-suggest stuff
Note: See TracChangeset
for help on using the changeset viewer.