Version Description
(2020-10-08) = - Adds in the ability to use the {table} template tag in email notifications when you have Multiple Locations enabled in the Business Profile plugin. - Time now clears if you change the date in the booking form. - Corrected an issue where the booking form sometimes showed incorrect time slots if you had overlapping schedules for the same day.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Restaurant Reservations |
Version | 2.1.23 |
Comparing to | |
See all releases |
Code changes from version 2.1.22 to 2.1.23
- assets/js/booking-form.js +2 -0
- assets/js/dashboard-review-ask.js +4 -4
- includes/Ajax.class.php +0 -6
- includes/MultipleLocations.class.php +6 -1
- readme.txt +5 -0
- restaurant-reservations.php +1 -1
assets/js/booking-form.js
CHANGED
@@ -186,6 +186,8 @@ jQuery(document).ready(function ($) {
|
|
186 |
*/
|
187 |
rtb_booking_form.update_timepicker_range = function() {
|
188 |
|
|
|
|
|
189 |
// Reset enabled/disabled rules on this timepicker
|
190 |
rtb_booking_form.timepicker.set( 'enable', false );
|
191 |
rtb_booking_form.timepicker.set( 'disable', false );
|
186 |
*/
|
187 |
rtb_booking_form.update_timepicker_range = function() {
|
188 |
|
189 |
+
rtb_booking_form.timepicker.clear();
|
190 |
+
|
191 |
// Reset enabled/disabled rules on this timepicker
|
192 |
rtb_booking_form.timepicker.set( 'enable', false );
|
193 |
rtb_booking_form.timepicker.set( 'disable', false );
|
assets/js/dashboard-review-ask.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
jQuery(document).ready(function($) {
|
2 |
jQuery('.rtb-main-dashboard-review-ask').css('display', 'block');
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
|
9 |
jQuery('.rtb-review-ask-yes').on('click', function() {
|
10 |
jQuery('.rtb-review-ask-feedback-text').removeClass('rtb-hidden');
|
1 |
jQuery(document).ready(function($) {
|
2 |
jQuery('.rtb-main-dashboard-review-ask').css('display', 'block');
|
3 |
|
4 |
+
jQuery(document).on('click', '.rtb-main-dashboard-review-ask .notice-dismiss', function(event) {
|
5 |
+
var data = 'ask_review_time=7&action=rtb_hide_review_ask';
|
6 |
+
jQuery.post(ajaxurl, data, function() {});
|
7 |
+
});
|
8 |
|
9 |
jQuery('.rtb-review-ask-yes').on('click', function() {
|
10 |
jQuery('.rtb-review-ask-feedback-text').removeClass('rtb-hidden');
|
includes/Ajax.class.php
CHANGED
@@ -364,9 +364,6 @@ if ( !class_exists( 'rtbAJAX' ) ) {
|
|
364 |
$valid_times[] = $open_time;
|
365 |
$valid_times[] = $close_time;
|
366 |
}
|
367 |
-
else {
|
368 |
-
return false;
|
369 |
-
}
|
370 |
}
|
371 |
}
|
372 |
|
@@ -412,9 +409,6 @@ if ( !class_exists( 'rtbAJAX' ) ) {
|
|
412 |
$valid_times[] = $open_time;
|
413 |
$valid_times[] = $close_time;
|
414 |
}
|
415 |
-
else {
|
416 |
-
return false;
|
417 |
-
}
|
418 |
}
|
419 |
}
|
420 |
}
|
364 |
$valid_times[] = $open_time;
|
365 |
$valid_times[] = $close_time;
|
366 |
}
|
|
|
|
|
|
|
367 |
}
|
368 |
}
|
369 |
|
409 |
$valid_times[] = $open_time;
|
410 |
$valid_times[] = $close_time;
|
411 |
}
|
|
|
|
|
|
|
412 |
}
|
413 |
}
|
414 |
}
|
includes/MultipleLocations.class.php
CHANGED
@@ -667,8 +667,13 @@ if ( ! class_exists( 'rtbMultipleLocations', false ) ) {
|
|
667 |
$term = empty( $notification->booking->location ) ? null : get_term( $notification->booking->location, $this->location_taxonomy );
|
668 |
$location_name = is_null( $term ) || is_wp_error( $term ) ? '' : $term->name;
|
669 |
|
|
|
|
|
670 |
return array_merge(
|
671 |
-
array(
|
|
|
|
|
|
|
672 |
$template_tags
|
673 |
);
|
674 |
}
|
667 |
$term = empty( $notification->booking->location ) ? null : get_term( $notification->booking->location, $this->location_taxonomy );
|
668 |
$location_name = is_null( $term ) || is_wp_error( $term ) ? '' : $term->name;
|
669 |
|
670 |
+
$table_number = empty( $notification->booking->table ) ? '' : $notification->booking->table;
|
671 |
+
|
672 |
return array_merge(
|
673 |
+
array(
|
674 |
+
'{location}' => $location_name,
|
675 |
+
'{table}' => implode(',', $table_number ),
|
676 |
+
),
|
677 |
$template_tags
|
678 |
);
|
679 |
}
|
readme.txt
CHANGED
@@ -196,6 +196,11 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
|
|
196 |
|
197 |
== Changelog ==
|
198 |
|
|
|
|
|
|
|
|
|
|
|
199 |
= 2.1.22 (2020-09-11) =
|
200 |
- Corrects recent issue causing the feedback notice to not dismiss correctly
|
201 |
|
196 |
|
197 |
== Changelog ==
|
198 |
|
199 |
+
= 2.1.23 (2020-10-08) =
|
200 |
+
- Adds in the ability to use the {table} template tag in email notifications when you have Multiple Locations enabled in the Business Profile plugin.
|
201 |
+
- Time now clears if you change the date in the booking form.
|
202 |
+
- Corrected an issue where the booking form sometimes showed incorrect time slots if you had overlapping schedules for the same day.
|
203 |
+
|
204 |
= 2.1.22 (2020-09-11) =
|
205 |
- Corrects recent issue causing the feedback notice to not dismiss correctly
|
206 |
|
restaurant-reservations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
-
* Version: 2.1.
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
+
* Version: 2.1.23
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|