Moved script to normal queue since noConflict was a bust

This commit is contained in:
Andrey Savchenko committed 2013-12-05 23:49:08 +02:00
1 parent 0ed37d4d92
commit 4cc18430da
1 file changed
+6 -8
+6 -8
View File
@@ -152,27 +152,25 @@ class Laps {
wp_register_style( 'laps', plugins_url( 'css/laps.css', __DIR__ ) );
if ( is_admin_bar_showing() ) {
wp_enqueue_script( 'laps-tooltip' );
wp_enqueue_style( 'laps' );
}
}
static function print_footer_scripts( ) {
if ( ! is_admin_bar_showing() )
return;
wp_print_scripts( 'laps-tooltip' );
?><script type="text/javascript">
if ( wp_script_is( 'laps-tooltip', 'done' ) ) {
?>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery(".laps-timeline .event").lapstooltip({
container: '#wpadminbar'
, placement: 'bottom'
, html: true
container: '#wpadminbar', placement: 'bottom', html: true
// , trigger: 'click'
});
});
</script><?php
}
}
/**
* Render interface and add to the toolbar.