| @@ -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. |
| @@ -1658,9 +1658,9 @@ | ||
| 1658 | 1658 | $params['btn_vm_calendar'] = array( |
| 1659 | 1659 | 'title' => '' |
| 1660 | 1660 | , 'hint' => array( 'title' => __('Timeline View' ,'booking') , 'position' => 'bottom' ) |
| 1661 | 1661 | , 'selected' => ( $selected_view_mode == 'vm_calendar' ) ? true : false |
| 1662 | - , 'link' => $bk_admin_url . '&view_mode=vm_calendar' | |
| 1662 | + , 'link' => $bk_admin_url . '&tab=vm_calendar' | |
| 1663 | 1663 | , 'icon' => '' |
| 1664 | 1664 | , 'font_icon' => 'glyphicon glyphicon-calendar' |
| 1665 | 1665 | ); |
| 1666 | 1666 | |
| @@ -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,20 @@ | ||
| 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', | |
| 2079 | + placement: 'right', | |
| 2074 | 2080 | } ); |
| 2075 | - wpbc_tippy( parent_class + '.tooltip_right', { | |
| 2081 | + // FixIn: 10.11.5.8. | |
| 2082 | + wpbc_tippy( parent_class + '.tooltip_right_offset', { | |
| 2076 | 2083 | content( reference ){ |
| 2077 | 2084 | return wpbc_get_tippy_tooltip_title_text( reference ); |
| 2078 | 2085 | }, |
| 2086 | + offset: [0, 25], | |
| 2079 | 2087 | placement: 'right', |
| 2080 | 2088 | } ); |
| 2081 | 2089 | wpbc_tippy( parent_class + '.tooltip_left', { |
| 2082 | 2090 | content( reference ){ |
| @@ -2150,5 +2158,5 @@ | ||
| 2150 | 2158 | } |
| 2151 | 2159 | } |
| 2152 | 2160 | |
| 2153 | 2161 | return implode( ' ', $attributes ); |
| 2154 | -} | |
| 2162 | +} | |