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
+11 -13
+11 -13
View File
@@ -152,26 +152,24 @@ class Laps {
wp_register_style( 'laps', plugins_url( 'css/laps.css', __DIR__ ) ); wp_register_style( 'laps', plugins_url( 'css/laps.css', __DIR__ ) );
if ( is_admin_bar_showing() ) { if ( is_admin_bar_showing() ) {
wp_enqueue_script( 'laps-tooltip' );
wp_enqueue_style( 'laps' ); wp_enqueue_style( 'laps' );
} }
} }
static function print_footer_scripts( ) { static function print_footer_scripts( ) {
if ( ! is_admin_bar_showing() ) if ( wp_script_is( 'laps-tooltip', 'done' ) ) {
return; ?>
<script type="text/javascript">
wp_print_scripts( 'laps-tooltip' ); jQuery(document).ready(function () {
?><script type="text/javascript"> jQuery(".laps-timeline .event").lapstooltip({
jQuery(document).ready(function () { container: '#wpadminbar', placement: 'bottom', html: true
jQuery(".laps-timeline .event").lapstooltip({ // , trigger: 'click'
container: '#wpadminbar' });
, placement: 'bottom'
, html: true
// , trigger: 'click'
}); });
}); </script><?php
</script><?php }
} }
/** /**