Autosave when title has content and loses focus. props ryan. see #5749
git-svn-id: http://svn.automattic.com/wordpress/trunk@7394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2,6 +2,8 @@ jQuery(document).ready( function() {
|
||||
add_postbox_toggles('page');
|
||||
make_slugedit_clickable();
|
||||
|
||||
jQuery('#title').blur( function() { if ( (jQuery("#post_ID").val() > 0) || (jQuery("#title").val().length == 0) ) return; autosave(); } );
|
||||
|
||||
// hide advanced slug field
|
||||
jQuery('#pageslugdiv').hide();
|
||||
|
||||
|
||||
@@ -62,11 +62,6 @@ jQuery(document).ready( function() {
|
||||
// postboxes
|
||||
add_postbox_toggles('post');
|
||||
|
||||
// If no tags on the page, skip the tag and category stuff.
|
||||
if ( !jQuery('#tags-input').size() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Editable slugs
|
||||
make_slugedit_clickable();
|
||||
|
||||
@@ -91,6 +86,8 @@ jQuery(document).ready( function() {
|
||||
jQuery('#publish').click( tag_save_on_publish );
|
||||
jQuery('#save-post').click( tag_save_on_publish );
|
||||
|
||||
jQuery('#title').blur( function() { if ( (jQuery("#post_ID").val() > 0) || (jQuery("#title").val().length == 0) ) return; autosave(); } );
|
||||
|
||||
// auto-suggest stuff
|
||||
jQuery('#newtag').suggest( 'admin-ajax.php?action=ajax-tag-search', { delay: 500, minchars: 2 } );
|
||||
jQuery('#newtag').keypress( tag_press_key );
|
||||
|
||||
Reference in New Issue
Block a user