PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | core/any/admin-bs-ui.php +12 -12 11.211.8.3 View file →
@@ -1,4 +1,4 @@
1 1 <?php /**
2 2 * @version 1.1
3 3 * @package Any
4 4 * @category Toolbar. BS UI Elements for Admin Panel.
@@ -2016,12 +2016,18 @@
2016 2016
2017 2017 ////////////////////////////////////////////////////////////////////////////////
2018 2018 // JS & CSS
2019 2019 ////////////////////////////////////////////////////////////////////////////////
2020 -/** Tooltips JavaScript functions */
2021 -function wpbc_bs_javascript_tooltips() {
2022 -
2023 - ?><span id="wpbc_tooltips_container"></span><?php
2020 +/** Tooltips JavaScript functions */
2021 +function wpbc_bs_javascript_tooltips() {
2022 + static $is_rendered = false;
2023 +
2024 + if ( $is_rendered ) {
2025 + return;
2026 + }
2027 + $is_rendered = true;
2028 +
2029 + ?><span id="wpbc_tooltips_container"></span><?php
2024 2030 // FixIn: 7.0.1.10.
2025 2031 ?><script type="text/javascript">
2026 2032
2027 2033 function wpbc_define_tippy_tooltips( parent_class ){
@@ -2065,18 +2071,12 @@
2065 2071 return wpbc_get_tippy_tooltip_title_text( reference );
2066 2072 },
2067 2073 placement: 'bottom-start',
2068 2074 } );
2069 - wpbc_tippy( parent_class + '.tooltip_bottom', {
2075 + wpbc_tippy( parent_class + '.tooltip_right', {
2070 2076 content( reference ){
2071 2077 return wpbc_get_tippy_tooltip_title_text( reference );
2072 2078 },
2073 - placement: 'bottom-start',
2074 - } );
2075 - wpbc_tippy( parent_class + '.tooltip_right', {
2076 - content( reference ){
2077 - return wpbc_get_tippy_tooltip_title_text( reference );
2078 - },
2079 2079 placement: 'right',
2080 2080 } );
2081 2081 // FixIn: 10.11.5.8.
2082 2082 wpbc_tippy( parent_class + '.tooltip_right_offset', {
@@ -2158,5 +2158,5 @@
2158 2158 }
2159 2159 }
2160 2160
2161 2161 return implode( ' ', $attributes );
2162 -}
2162 +}