fit-ui 3.3.1 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Fit.UI.css +16 -2
- package/dist/Fit.UI.js +18 -2
- package/dist/Fit.UI.min.css +1 -1
- package/dist/Fit.UI.min.js +1 -1
- package/dist/Resources/JqueryUI-1.11.4.custom/README-FitUiCustomJqueryUiBuild.txt +7 -0
- package/dist/Resources/JqueryUI-1.11.4.custom/jquery-ui.js +5 -1
- package/package.json +1 -1
|
@@ -53,3 +53,10 @@ to the jQuery UI build is also necessary.
|
|
|
53
53
|
a complete list of all locales which maps to their corresponding
|
|
54
54
|
DateFormat strings - this list should be updated if localization
|
|
55
55
|
files are updated.
|
|
56
|
+
|
|
57
|
+
9) On November 10th 2025 an addition was made to the jQuery UI DatePicker which allows us to suppress automatic closing
|
|
58
|
+
of the calendar widget when a date is selected. Find the _selectDate function and locate the this._hideDatepicker() call.
|
|
59
|
+
This call is made conditional using a new callback named onBeforeAutoClose. The calendar is not closed if the callback returns false:
|
|
60
|
+
var onBeforeAutoClose = this._get(inst, "onBeforeAutoClose");
|
|
61
|
+
var hideCalendar = !onBeforeAutoClose || onBeforeAutoClose() !== false ? true : false;
|
|
62
|
+
hideCalendar && this._hideDatepicker();
|
|
@@ -1344,7 +1344,11 @@ $.extend(Datepicker.prototype, {
|
|
|
1344
1344
|
if (inst.inline){
|
|
1345
1345
|
this._updateDatepicker(inst);
|
|
1346
1346
|
} else {
|
|
1347
|
-
|
|
1347
|
+
// Fit.UI specific callback - allow calendar to remain open when selecting a date in the calendar widget
|
|
1348
|
+
var onBeforeAutoClose = this._get(inst, "onBeforeAutoClose");
|
|
1349
|
+
var hideCalendar = !onBeforeAutoClose || onBeforeAutoClose() !== false ? true : false;
|
|
1350
|
+
|
|
1351
|
+
hideCalendar && this._hideDatepicker();
|
|
1348
1352
|
this._lastInput = inst.input[0];
|
|
1349
1353
|
if (typeof(inst.input[0]) !== "object") {
|
|
1350
1354
|
inst.input.focus(); // restore focus
|