mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user