PluginProbe
Booking Calendar / 11.4.2
Booking Calendar v11.4.2
11.8.4 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 All 204 releases
booking / core / timeline / v2 / _src / timeline_v2.js

timeline_v2.js in Booking Calendar 11.4.2, at core/timeline/v2/_src/timeline_v2.js

41 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2 function wpbc_flextimeline_nav( timeline_obj, nav_step ){
3
4 jQuery( ".wpbc_timeline_front_end" ).trigger( "timeline_nav" , [ timeline_obj, nav_step ] ); // FixIn: 7.0.1.48.
5
6 // jQuery( '#'+timeline_obj.html_client_id + ' .wpbc_tl_prev,#'+timeline_obj.html_client_id + ' .wpbc_tl_next').remove();
7 // jQuery('#'+timeline_obj.html_client_id + ' .wpbc_tl_title').html( '<span class="wpbc_icn_rotate_right wpbc_spin"></span> &nbsp Loading...' ); // '<div style="height:20px;width:100%;text-align:center;margin:15px auto;">Loading ... <img style="vertical-align:middle;box-shadow:none;width:14px;" src="'+_wpbc.get_other_param( 'url_plugin' )+'/assets/img/ajax-loader.gif"><//div>'
8
9 jQuery( '#'+timeline_obj.html_client_id + ' .flex_tl_prev,#'+timeline_obj.html_client_id + ' .flex_tl_next').remove();
10 jQuery('#'+timeline_obj.html_client_id + ' .flex_tl_title').html( '<span class="wpbc_icn_rotate_right wpbc_spin"></span> &nbsp Loading...' ); // '<div style="height:20px;width:100%;text-align:center;margin:15px auto;">Loading ... <img style="vertical-align:middle;box-shadow:none;width:14px;" src="'+_wpbc.get_other_param( 'url_plugin' )+'/assets/img/ajax-loader.gif"><//div>'
11
12
13 //Deprecated: FixIn: 9.0.1.1.1
14 // if ( 'function' === typeof( jQuery(".popover_click.popover_bottom" ).popover ) ) //FixIn: 7.0.1.2 - 2016-12-10
15 // jQuery('.popover_click.popover_bottom').popover( 'hide' ); //Hide all opened popovers
16
17 jQuery.ajax({
18 url: wpbc_url_ajax,
19 type:'POST',
20 success: function ( data, textStatus ){ // Note, here we direct show HTML to TimeLine frame
21 if( textStatus == 'success') {
22 jQuery('#' + timeline_obj.html_client_id + ' .wpbc_timeline_ajax_replace' ).html( data );
23 return true;
24 }
25 },
26 error: function ( XMLHttpRequest, textStatus, errorThrown){
27 window.status = 'Ajax Error! Status: ' + textStatus;
28 alert( 'Ajax Error! Status: ' + XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText );
29 },
30 // beforeSend: someFunction,
31 data:{
32 action: 'WPBC_FLEXTIMELINE_NAV',
33 timeline_obj: timeline_obj,
34 nav_step: nav_step,
35 wpdev_active_locale: _wpbc.get_other_param( 'locale_active' ),
36 wpbc_nonce: document.getElementById('wpbc_nonce_'+ timeline_obj.html_client_id).value
37 }
38 });
39 }
40
41