Preview for both drafts and published posts/pages
git-svn-id: http://svn.automattic.com/wordpress/trunk@9451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -260,6 +260,14 @@ jQuery(document).ready( function($) {
|
||||
return s;
|
||||
}
|
||||
});
|
||||
|
||||
// preview
|
||||
$('#post-preview').click(function(e){
|
||||
$('input#wp-preview').val('dopreview');
|
||||
$('form#post').attr('target', 'wp-preview').submit().attr('target', '');
|
||||
$('input#wp-preview').val('');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
(function($){
|
||||
@@ -314,7 +322,7 @@ jQuery(document).ready( function($) {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user