fit-ui 3.4.3 → 3.4.4
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.js +15 -8
- package/dist/Fit.UI.min.js +1 -1
- package/package.json +1 -1
package/dist/Fit.UI.js
CHANGED
|
@@ -682,7 +682,7 @@ Fit._internal =
|
|
|
682
682
|
{
|
|
683
683
|
Core:
|
|
684
684
|
{
|
|
685
|
-
VersionInfo: { Major: 3, Minor: 4, Patch:
|
|
685
|
+
VersionInfo: { Major: 3, Minor: 4, Patch: 4 } // Do NOT modify format - version numbers are programmatically changed when releasing new versions - MUST be on a separate line!
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
|
|
@@ -14746,12 +14746,14 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
14746
14746
|
|
|
14747
14747
|
if (Fit.Validation.IsSet(val) === true)
|
|
14748
14748
|
{
|
|
14749
|
-
|
|
14750
|
-
setLocale(val);
|
|
14751
|
-
|
|
14752
|
-
if (selectWeek === true)
|
|
14749
|
+
if (setLocale(val) === true)
|
|
14753
14750
|
{
|
|
14754
|
-
|
|
14751
|
+
localeEnforced = true;
|
|
14752
|
+
|
|
14753
|
+
if (selectWeek === true)
|
|
14754
|
+
{
|
|
14755
|
+
selectFirstDayOfWeek(middleOfWeek);
|
|
14756
|
+
}
|
|
14755
14757
|
}
|
|
14756
14758
|
}
|
|
14757
14759
|
|
|
@@ -15908,7 +15910,10 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
15908
15910
|
var loc = getJqueryDateFormatFromLocale(val); // Null if locale does not exist
|
|
15909
15911
|
|
|
15910
15912
|
if (loc === null)
|
|
15911
|
-
|
|
15913
|
+
{
|
|
15914
|
+
console.warn("Unknown locale '" + val + "'");
|
|
15915
|
+
return false;
|
|
15916
|
+
}
|
|
15912
15917
|
|
|
15913
15918
|
var newFormat = loc.format;
|
|
15914
15919
|
|
|
@@ -15933,6 +15938,8 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
15933
15938
|
me.Show();
|
|
15934
15939
|
restoreView = false;
|
|
15935
15940
|
}
|
|
15941
|
+
|
|
15942
|
+
return true;
|
|
15936
15943
|
}
|
|
15937
15944
|
|
|
15938
15945
|
function setFormat(val)
|
|
@@ -16020,7 +16027,7 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
16020
16027
|
|
|
16021
16028
|
// Update locale
|
|
16022
16029
|
|
|
16023
|
-
// Make sure locale exists - otherwise setLocale
|
|
16030
|
+
// Make sure locale exists - otherwise setLocale emits a warning
|
|
16024
16031
|
if (Fit.Array.Contains(Fit.Array.GetKeys(getLocales()), key) === true)
|
|
16025
16032
|
{
|
|
16026
16033
|
setLocale(key);
|