| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | |
| 32 | -//FixIn: 9.6.3.5 | |
| 32 | +// FixIn: 9.6.3.5. | |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Decrease counter about new bookings |
| 36 | 36 | * |
| @@ -148,9 +148,9 @@ | ||
| 148 | 148 | jQuery('#booking_row_'+booking_id).fadeOut(1000); |
| 149 | 149 | jQuery('#gcal_imported_events_id_'+booking_id).remove(); |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | -//FixIn: 9.6.3.5 | |
| 152 | +// FixIn: 9.6.3.5. | |
| 153 | 153 | |
| 154 | 154 | // Set in Booking listing R O W new Remark in hint |
| 155 | 155 | function set_booking_row_payment_status(booking_id, payment_status, payment_status_show){ |
| 156 | 156 | |
| @@ -169,9 +169,9 @@ | ||
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | |
| 172 | 172 | |
| 173 | -//FixIn: 9.6.3.5 | |
| 173 | +// FixIn: 9.6.3.5. | |
| 174 | 174 | |
| 175 | 175 | //FixIn: 5.4.5 |
| 176 | 176 | /** |
| 177 | 177 | * Get selected Locale of booking in Booking Listing page. |
| @@ -205,9 +205,9 @@ | ||
| 205 | 205 | var ajax_type_action = 'UPDATE_APPROVE'; |
| 206 | 206 | var denyreason = ''; |
| 207 | 207 | if ( is_send_emeils == 1 ) { |
| 208 | 208 | if ( jQuery('#is_send_email_for_pending').length ) { |
| 209 | - is_send_emeils = jQuery( '#is_send_email_for_pending' ).is( ':checked' ); //FixIn: 8.7.9.5 | |
| 209 | + is_send_emeils = jQuery( '#is_send_email_for_pending' ).is( ':checked' ); // FixIn: 8.7.9.5. | |
| 210 | 210 | if ( false === is_send_emeils ) { is_send_emeils = 0; } |
| 211 | 211 | else { is_send_emeils = 1; } |
| 212 | 212 | } |
| 213 | 213 | if ( jQuery('#denyreason').length ) |
| @@ -221,9 +221,9 @@ | ||
| 221 | 221 | jQuery.ajax({ // Start Ajax Sending |
| 222 | 222 | url: wpbc_url_ajax, |
| 223 | 223 | type:'POST', |
| 224 | 224 | success: function (data, textStatus){if( textStatus == 'success') jQuery('#ajax_respond').html( data );}, |
| 225 | - error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;alert(XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText);if (XMLHttpRequest.status == 500) {alert('Please check at this page according this error:' + ' https://wpbookingcalendar.com/faq/#ajax-sending-error');}}, | |
| 225 | + error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;console.error( XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText);if (XMLHttpRequest.status == 500) {console.error( 'Please check at this page according this error:' + ' https://wpbookingcalendar.com/faq/#ajax-sending-error');}}, | |
| 226 | 226 | // beforeSend: someFunction, |
| 227 | 227 | data:{ |
| 228 | 228 | // ajax_action : ajax_type_action, // Action |
| 229 | 229 | action : ajax_type_action, // Action |
| @@ -292,9 +292,9 @@ | ||
| 292 | 292 | var ajax_type_action = 'TRASH_RESTORE'; |
| 293 | 293 | var denyreason = ''; |
| 294 | 294 | if (is_send_emeils == 1) { |
| 295 | 295 | if ( jQuery('#is_send_email_for_pending').length ) { |
| 296 | - is_send_emeils = jQuery( '#is_send_email_for_pending' ).is( ':checked' ); //FixIn: 8.7.9.5 | |
| 296 | + is_send_emeils = jQuery( '#is_send_email_for_pending' ).is( ':checked' ); // FixIn: 8.7.9.5. | |
| 297 | 297 | if ( false === is_send_emeils ) { is_send_emeils = 0; } |
| 298 | 298 | else { is_send_emeils = 1; } |
| 299 | 299 | } |
| 300 | 300 | if ( jQuery('#denyreason').length ) |
| @@ -308,9 +308,9 @@ | ||
| 308 | 308 | jQuery.ajax({ // Start Ajax Sending |
| 309 | 309 | url: wpbc_url_ajax, |
| 310 | 310 | type:'POST', |
| 311 | 311 | success: function (data, textStatus){if( textStatus == 'success') jQuery('#ajax_respond').html( data );}, |
| 312 | - error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;alert(XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText);if (XMLHttpRequest.status == 500) {alert('Please check at this page according this error:' + ' https://wpbookingcalendar.com/faq/#ajax-sending-error');}}, | |
| 312 | + error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;console.error( XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText);if (XMLHttpRequest.status == 500) {console.error( 'Please check at this page according this error:' + ' https://wpbookingcalendar.com/faq/#ajax-sending-error');}}, | |
| 313 | 313 | // beforeSend: someFunction, |
| 314 | 314 | data:{ |
| 315 | 315 | //ajax_action : ajax_type_action, // Action |
| 316 | 316 | action : ajax_type_action, // Action |
| @@ -341,9 +341,9 @@ | ||
| 341 | 341 | var ajax_type_action = 'DELETE_APPROVE'; |
| 342 | 342 | var denyreason = ''; |
| 343 | 343 | if (is_send_emeils == 1) { |
| 344 | 344 | if ( jQuery('#is_send_email_for_pending').length ) { |
| 345 | - is_send_emeils = jQuery( '#is_send_email_for_pending' ).is( ':checked' ); //FixIn: 8.7.9.5 | |
| 345 | + is_send_emeils = jQuery( '#is_send_email_for_pending' ).is( ':checked' ); // FixIn: 8.7.9.5. | |
| 346 | 346 | if ( false === is_send_emeils ) { is_send_emeils = 0; } |
| 347 | 347 | else { is_send_emeils = 1; } |
| 348 | 348 | } |
| 349 | 349 | if ( jQuery('#denyreason').length ) |
| @@ -357,9 +357,9 @@ | ||
| 357 | 357 | jQuery.ajax({ // Start Ajax Sending |
| 358 | 358 | url: wpbc_url_ajax, |
| 359 | 359 | type:'POST', |
| 360 | 360 | success: function (data, textStatus){if( textStatus == 'success') jQuery('#ajax_respond').html( data );}, |
| 361 | - error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;alert(XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText);if (XMLHttpRequest.status == 500) {alert('Please check at this page according this error:' + ' https://wpbookingcalendar.com/faq/#ajax-sending-error');}}, | |
| 361 | + error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;console.error( XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText);if (XMLHttpRequest.status == 500) {console.error( 'Please check at this page according this error:' + ' https://wpbookingcalendar.com/faq/#ajax-sending-error');}}, | |
| 362 | 362 | // beforeSend: someFunction, |
| 363 | 363 | data:{ |
| 364 | 364 | //ajax_action : ajax_type_action, // Action |
| 365 | 365 | action : ajax_type_action, // Action |
| @@ -376,9 +376,9 @@ | ||
| 376 | 376 | |
| 377 | 377 | return true; |
| 378 | 378 | } |
| 379 | 379 | |
| 380 | -//FixIn: 9.6.3.5 | |
| 380 | +// FixIn: 9.6.3.5. | |
| 381 | 381 | |
| 382 | 382 | // Get Selected rows in imported Events list |
| 383 | 383 | function get_selected_bookings_id_in_this_list( list_tag, skip_id_length ) { |
| 384 | 384 | |
| @@ -398,9 +398,9 @@ | ||
| 398 | 398 | return id_for_approve ; |
| 399 | 399 | |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | -//FixIn: 9.6.3.5 | |
| 402 | +// FixIn: 9.6.3.5. | |
| 403 | 403 | |
| 404 | 404 | |
| 405 | 405 | /** |
| 406 | 406 | * Selections of several checkboxes like in gMail with shift :) |
| @@ -422,9 +422,9 @@ | ||
| 422 | 422 | |
| 423 | 423 | var checks, first, last, checked, sliced, lastClicked = false; |
| 424 | 424 | |
| 425 | 425 | // check all checkboxes |
| 426 | - $('.wpbc_selectable_body').find('.check-column').find(':checkbox').on( 'click', function(e) { //FixIn: 8.7.11.12 | |
| 426 | + $('.wpbc_selectable_body').find('.check-column').find(':checkbox').on( 'click', function(e) { // FixIn: 8.7.11.12. | |
| 427 | 427 | if ( 'undefined' == e.shiftKey ) { return true; } |
| 428 | 428 | if ( e.shiftKey ) { |
| 429 | 429 | if ( !lastClicked ) { return true; } |
| 430 | 430 | //checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ).filter( ':visible:enabled' ); |
| @@ -445,9 +445,9 @@ | ||
| 445 | 445 | lastClicked = this; |
| 446 | 446 | |
| 447 | 447 | // toggle "check all" checkboxes |
| 448 | 448 | var unchecked = $(this).closest('.wpbc_selectable_body').find(':checkbox').filter(':visible:enabled').not(':checked'); |
| 449 | - //FixIn: 8.8.1.15 | |
| 449 | + // FixIn: 8.8.1.15. | |
| 450 | 450 | $(this).closest('.wpbc_selectable_table').find('.wpbc_selectable_head, .wpbc_selectable_foot').find(':checkbox').prop('checked', function() { |
| 451 | 451 | return ( 0 === unchecked.length ); |
| 452 | 452 | }); |
| 453 | 453 | |
| @@ -452,14 +452,14 @@ | ||
| 452 | 452 | }); |
| 453 | 453 | |
| 454 | 454 | |
| 455 | 455 | // Disable text selection while pressing 'shift' |
| 456 | - document.getSelection().removeAllRanges(); //FixIn: 8.7.6.8 | |
| 456 | + document.getSelection().removeAllRanges(); // FixIn: 8.7.6.8. | |
| 457 | 457 | |
| 458 | 458 | return true; |
| 459 | 459 | }); |
| 460 | 460 | |
| 461 | - //FixIn: 9.9.0.7 | |
| 461 | + // FixIn: 9.9.0.7. | |
| 462 | 462 | $('.wpbc_selectable_body').find('.check-column').find(':checkbox').on( 'change', function(e) { |
| 463 | 463 | if ( jQuery( this ).is( ':checked' ) ){ |
| 464 | 464 | jQuery( this ).closest( '.wpbc_flextable_row' ).addClass( 'wpbc_flextable_row_selected' ); |
| 465 | 465 | } else { |
| @@ -471,9 +471,9 @@ | ||
| 471 | 471 | var $this = $(this), |
| 472 | 472 | $table = $this.closest( '.wpbc_selectable_table' ), |
| 473 | 473 | controlChecked = $this.prop('checked'), |
| 474 | 474 | toggle = event.shiftKey || $this.data('wp-toggle'); |
| 475 | - //FixIn: 8.8.1.15 | |
| 475 | + // FixIn: 8.8.1.15. | |
| 476 | 476 | $table.find( '.wpbc_selectable_body' ).filter(':visible') |
| 477 | 477 | .find('.check-column').find(':checkbox') |
| 478 | 478 | .prop('checked', function() { |
| 479 | 479 | |
| @@ -487,11 +487,11 @@ | ||
| 487 | 487 | return true; |
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | return false; |
| 491 | - }).trigger( 'change' ); //FixIn: 9.9.0.7 | |
| 491 | + }).trigger( 'change' ); // FixIn: 9.9.0.7. | |
| 492 | 492 | |
| 493 | - //FixIn: 8.8.1.15 | |
| 493 | + // FixIn: 8.8.1.15. | |
| 494 | 494 | $table.find('.wpbc_selectable_head, .wpbc_selectable_foot').filter(':visible') |
| 495 | 495 | .find('.check-column').find(':checkbox') |
| 496 | 496 | .prop('checked', function() { |
| 497 | 497 | if ( toggle ) { |
| @@ -505,9 +505,9 @@ | ||
| 505 | 505 | }); |
| 506 | 506 | }); |
| 507 | 507 | }( jQuery ) ); |
| 508 | 508 | |
| 509 | -//FixIn: 8.4.7.14 | |
| 509 | +// FixIn: 8.4.7.14. | |
| 510 | 510 | function wpbc_are_you_sure_popup(){ |
| 511 | 511 | if ( wpbc_are_you_sure( 'Do you really want to do this ?' ) ) { |
| 512 | 512 | return true; |
| 513 | 513 | } else { |