Booking Calendar - Version 8.7.10

Version Description

  • Changes in all versions:
    • Fix. Error Uncaught TypeError: $.browser is undefined (8.7.10.1)
Download this release

Release Info

Developer wpdevelop
Plugin Icon 128x128 Booking Calendar
Version 8.7.10
Comparing to
See all releases

Code changes from version 8.7.9 to 8.7.10

assets/libs/chosen/{chosen-sprite.png → chzn-sprite.png} RENAMED
File without changes
assets/libs/chosen/{chosen-sprite@2x.png → chzn-sprite@2x.png} RENAMED
File without changes
js/datepick/jquery.datepick.js CHANGED
@@ -10,6 +10,28 @@
10
 
11
  var PROP_NAME = 'datepick';
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  /* Date picker manager.
14
  Use the singleton instance of this class, $.datepick, to interact with the date picker.
15
  Settings for (groups of) date pickers are maintained in an instance object,
@@ -785,7 +807,7 @@ $.extend(Datepick.prototype, {
785
  isFixed |= $(this).css('position') == 'fixed';
786
  return !isFixed;
787
  });
788
- if (isFixed && $.browser.opera) { // Correction for Opera when fixed and scrolled
789
  $.datepick._pos[0] -= document.documentElement.scrollLeft;
790
  $.datepick._pos[1] -= document.documentElement.scrollTop;
791
  }
@@ -852,7 +874,7 @@ $.extend(Datepick.prototype, {
852
  @return (number[2]) the left and top borders */
853
  _getBorders: function(elem) {
854
  var convert = function(value) {
855
- var extra = ($.browser.msie ? 1 : 0);
856
  return {thin: 1 + extra, medium: 3 + extra, thick: 5 + extra}[value] || value;
857
  };
858
  return [parseFloat(convert(elem.css('border-left-width'))),
@@ -875,11 +897,11 @@ $.extend(Datepick.prototype, {
875
  var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
876
  var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
877
  var above = pos[1] - (this._inDialog ? 0 : inst.dpDiv.outerHeight()) -
878
- (isFixed && $.browser.opera ? document.documentElement.scrollTop : 0);
879
  var below = offset.top;
880
  var alignL = offset.left;
881
  var alignR = pos[0] + (inst.input ? inst.input.outerWidth() : 0) - inst.dpDiv.outerWidth() -
882
- (isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0);
883
  var tooWide = (offset.left + inst.dpDiv.outerWidth() - scrollX) > browserWidth;
884
  var tooHigh = (offset.top + inst.dpDiv.outerHeight() - scrollY) > browserHeight;
885
  if (alignment == 'topLeft') {
@@ -1036,7 +1058,7 @@ $.extend(Datepick.prototype, {
1036
  @param id (string) the ID of the target field */
1037
  _clickMonthYear: function(id) {
1038
  var inst = this._getInst($(id)[0]);
1039
- if (inst.input && inst.selectingMonthYear && !$.browser.msie)
1040
  inst.input.focus();
1041
  inst.selectingMonthYear = !inst.selectingMonthYear;
1042
  },
@@ -1870,7 +1892,7 @@ $.extend(Datepick.prototype, {
1870
  inst.id +'" class="' + this._statusClass[useTR] + '">' + initStatus + '</div>' : '') +
1871
  (!closeAtTop && !inst.inline ? controls : '') +
1872
  '<div style="clear: both;"></div>' +
1873
- ($.browser.msie && parseInt($.browser.version, 10) < 7 && !inst.inline ?
1874
  '<iframe src="javascript:false;" class="' + this._coverClass[useTR] + '"></iframe>' : '');
1875
  inst.keyEvent = false;
1876
  return html;
10
 
11
  var PROP_NAME = 'datepick';
12
 
13
+
14
+ // https://github.com/jquery/jquery-migrate/blob/master/src/core.js#L50
15
+ //FixIn: 8.7.10.1
16
+ if (!$.browser_is_supported_datepick) {
17
+ var uaMatch = function(ua) {
18
+ ua = ua.toLowerCase();
19
+
20
+ var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || /(webkit)[ \/]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];
21
+
22
+ return match[2] || '0';
23
+ };
24
+
25
+ $.browser_is_supported_datepick = {
26
+ mozilla: /mozilla/.test(navigator.userAgent.toLowerCase()) && !/webkit/.test(navigator.userAgent.toLowerCase()),
27
+ webkit: /webkit/.test(navigator.userAgent.toLowerCase()),
28
+ opera: /opera/.test(navigator.userAgent.toLowerCase()),
29
+ msie: /msie/.test(navigator.userAgent.toLowerCase()),
30
+ android: (navigator.userAgent.toLowerCase().indexOf('mozilla/5.0') > -1 && navigator.userAgent.toLowerCase().indexOf('android ') > -1 && navigator.userAgent.toLowerCase().indexOf('applewebkit') > -1),
31
+ version: uaMatch(navigator.userAgent)
32
+ };
33
+ }
34
+
35
  /* Date picker manager.
36
  Use the singleton instance of this class, $.datepick, to interact with the date picker.
37
  Settings for (groups of) date pickers are maintained in an instance object,
807
  isFixed |= $(this).css('position') == 'fixed';
808
  return !isFixed;
809
  });
810
+ if (isFixed && $.browser_is_supported_datepick.opera) { // Correction for Opera when fixed and scrolled
811
  $.datepick._pos[0] -= document.documentElement.scrollLeft;
812
  $.datepick._pos[1] -= document.documentElement.scrollTop;
813
  }
874
  @return (number[2]) the left and top borders */
875
  _getBorders: function(elem) {
876
  var convert = function(value) {
877
+ var extra = ($.browser_is_supported_datepick.msie ? 1 : 0);
878
  return {thin: 1 + extra, medium: 3 + extra, thick: 5 + extra}[value] || value;
879
  };
880
  return [parseFloat(convert(elem.css('border-left-width'))),
897
  var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
898
  var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
899
  var above = pos[1] - (this._inDialog ? 0 : inst.dpDiv.outerHeight()) -
900
+ (isFixed && $.browser_is_supported_datepick.opera ? document.documentElement.scrollTop : 0);
901
  var below = offset.top;
902
  var alignL = offset.left;
903
  var alignR = pos[0] + (inst.input ? inst.input.outerWidth() : 0) - inst.dpDiv.outerWidth() -
904
+ (isFixed && $.browser_is_supported_datepick.opera ? document.documentElement.scrollLeft : 0);
905
  var tooWide = (offset.left + inst.dpDiv.outerWidth() - scrollX) > browserWidth;
906
  var tooHigh = (offset.top + inst.dpDiv.outerHeight() - scrollY) > browserHeight;
907
  if (alignment == 'topLeft') {
1058
  @param id (string) the ID of the target field */
1059
  _clickMonthYear: function(id) {
1060
  var inst = this._getInst($(id)[0]);
1061
+ if (inst.input && inst.selectingMonthYear && !$.browser_is_supported_datepick.msie)
1062
  inst.input.focus();
1063
  inst.selectingMonthYear = !inst.selectingMonthYear;
1064
  },
1892
  inst.id +'" class="' + this._statusClass[useTR] + '">' + initStatus + '</div>' : '') +
1893
  (!closeAtTop && !inst.inline ? controls : '') +
1894
  '<div style="clear: both;"></div>' +
1895
+ ($.browser_is_supported_datepick.msie && parseInt($.browser_is_supported_datepick.version, 10) < 7 && !inst.inline ?
1896
  '<iframe src="javascript:false;" class="' + this._coverClass[useTR] + '"></iframe>' : '');
1897
  inst.keyEvent = false;
1898
  return html;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: booking calendar, booking system, availability calendar, events calendar,
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
  Tested up to: 5.5
8
- Stable tag: 8.7.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -227,6 +227,10 @@ Please see [Video Guides](https://wpbookingcalendar.com/help/).
227
  13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
228
 
229
  == Changelog ==
 
 
 
 
230
  = 8.7.9 =
231
  - Changes in **all** versions:
232
  * **Improvement** Added primary key to booking dates table for correct working at wordpress.com (8.7.9.1)
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
  Tested up to: 5.5
8
+ Stable tag: 8.7.10
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
227
  13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
228
 
229
  == Changelog ==
230
+ = 8.7.10 =
231
+ - Changes in **all** versions:
232
+ * **Fix**. Error Uncaught TypeError: $.browser is undefined (8.7.10.1)
233
+
234
  = 8.7.9 =
235
  - Changes in **all** versions:
236
  * **Improvement** Added primary key to booking dates table for correct working at wordpress.com (8.7.9.1)
wpdev-booking.php CHANGED
@@ -7,7 +7,7 @@ Author: wpdevelop, oplugins
7
  Author URI: https://wpbookingcalendar.com/
8
  Text Domain: booking
9
  Domain Path: /languages/
10
- Version: 8.7.9
11
  */
12
 
13
  /* Copyright 2009 - 2020 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
@@ -29,7 +29,7 @@ Version: 8.7.9
29
  if ( ! defined( 'ABSPATH' ) ) die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly
30
 
31
 
32
- if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '8.7.9' ); }
33
 
34
  ////////////////////////////////////////////////////////////////////////////////
35
  // PRIMARY URL CONSTANTS
7
  Author URI: https://wpbookingcalendar.com/
8
  Text Domain: booking
9
  Domain Path: /languages/
10
+ Version: 8.7.10
11
  */
12
 
13
  /* Copyright 2009 - 2020 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
29
  if ( ! defined( 'ABSPATH' ) ) die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly
30
 
31
 
32
+ if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '8.7.10' ); }
33
 
34
  ////////////////////////////////////////////////////////////////////////////////
35
  // PRIMARY URL CONSTANTS