Simplify pointer API with smarter positioning. see #18693.

git-svn-id: https://develop.svn.wordpress.org/trunk@18969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2011-10-14 03:33:46 +00:00
parent 0ad398784b
commit ed7c3fb655
6 changed files with 72 additions and 47 deletions

View File

@@ -1650,7 +1650,6 @@ function wp_pointer_enqueue( $hook_suffix ) {
if ( $enqueue ) {
wp_enqueue_style( 'wp-pointer' );
wp_enqueue_script( 'wp-pointer' );
wp_enqueue_script( 'utils' );
}
}
add_action( 'admin_enqueue_scripts', 'wp_pointer_enqueue' );
@@ -1664,13 +1663,9 @@ function _wp_pointer_print_admin_bar() {
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready( function($) {
$('#wpadminbar').pointer({
$('#wp-admin-bar-help').pointer({
content: '<?php echo $pointer_content; ?>',
position: {
my: 'left top',
at: 'center bottom',
offset: '-25 0'
},
position: 'top',
close: function() {
$.post( ajaxurl, {
pointer: 'wp330-admin-bar',