Restaurant Reservations - Version 2.1.12

Version Description

(2020-06-29) = - Corrects issue with deleting tables and changing min. and max. people values for tables using the up and down arrows

Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Restaurant Reservations
Version 2.1.12
Comparing to
See all releases

Code changes from version 2.1.11 to 2.1.12

lib/simple-admin-pages/js/infinite_table.js CHANGED
@@ -41,10 +41,11 @@ function setInfiniteTableDeleteHandlers() {
41
  jQuery( '.sap-infinite-table-row-delete' ).off( 'click.delete_row' );
42
  jQuery( '.sap-infinite-table-row-delete' ).on( 'click.delete_row', function() {
43
  var table = jQuery( this ).closest( '.sap-infinite-table' );
 
44
 
45
  // give anything hooked into the delete action a chance to process before removing
46
  setTimeout( function() {
47
- jQuery(this).parent().remove();
48
 
49
  infiniteTableSaveData( table );
50
  }, 200);
@@ -52,8 +53,13 @@ function setInfiniteTableDeleteHandlers() {
52
  }
53
 
54
  function setInfiniteTableUpdateHandlers() {
55
- jQuery( '.sap-inifinite-table-row input, .sap-inifinite-table-row textarea').off( 'keyup.update_fields' );
56
- jQuery( '.sap-inifinite-table-row input, .sap-inifinite-table-row textarea').on( 'keyup.update_fields', function() {
 
 
 
 
 
57
  infiniteTableSaveData( jQuery( this ).closest( '.sap-infinite-table' ) );
58
  });
59
 
41
  jQuery( '.sap-infinite-table-row-delete' ).off( 'click.delete_row' );
42
  jQuery( '.sap-infinite-table-row-delete' ).on( 'click.delete_row', function() {
43
  var table = jQuery( this ).closest( '.sap-infinite-table' );
44
+ var row = jQuery( this );
45
 
46
  // give anything hooked into the delete action a chance to process before removing
47
  setTimeout( function() {
48
+ row.parent().remove();
49
 
50
  infiniteTableSaveData( table );
51
  }, 200);
53
  }
54
 
55
  function setInfiniteTableUpdateHandlers() {
56
+ jQuery( '.sap-inifinite-table-row input, .sap-inifinite-table-row textarea' ).off( 'keyup.update_fields' );
57
+ jQuery( '.sap-inifinite-table-row input, .sap-inifinite-table-row textarea' ).on( 'keyup.update_fields', function() {
58
+ infiniteTableSaveData( jQuery( this ).closest( '.sap-infinite-table' ) );
59
+ });
60
+
61
+ jQuery( '.sap-inifinite-table-row input[type="number"]' ).off( 'click.update_fields' );
62
+ jQuery( '.sap-inifinite-table-row input[type="number"]' ).on( 'click.update_fields', function() {
63
  infiniteTableSaveData( jQuery( this ).closest( '.sap-infinite-table' ) );
64
  });
65
 
readme.txt CHANGED
@@ -196,6 +196,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
196
 
197
  == Changelog ==
198
 
 
 
 
199
  = 2.1.11 (2020-06-25) =
200
  - Updated naming of settings sections to make it more clear
201
  - A few styling updates to the admin panel
196
 
197
  == Changelog ==
198
 
199
+ = 2.1.12 (2020-06-29) =
200
+ - Corrects issue with deleting tables and changing min. and max. people values for tables using the up and down arrows
201
+
202
  = 2.1.11 (2020-06-25) =
203
  - Updated naming of settings sections to make it more clear
204
  - A few styling updates to the admin panel
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.11
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.12
7
  * Author: FiveStarPlugins
8
  * Author URI: https://profiles.wordpress.org/fivestarplugins/
9
  * Text Domain: restaurant-reservations