fit-ui 2.12.3 → 2.12.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 +7 -10
- 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: 2, Minor: 12, Patch:
|
|
685
|
+
VersionInfo: { Major: 2, Minor: 12, 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
|
|
|
@@ -21092,7 +21092,7 @@ Fit.Controls.WSDropDown = function(ctlId)
|
|
|
21092
21092
|
/// </function>
|
|
21093
21093
|
this.ClearData = function(cb)
|
|
21094
21094
|
{
|
|
21095
|
-
clearData(true, cb);
|
|
21095
|
+
clearData(true, true, cb);
|
|
21096
21096
|
}
|
|
21097
21097
|
|
|
21098
21098
|
/// <function container="Fit.Controls.WSDropDown" name="ReloadData" access="public">
|
|
@@ -21109,15 +21109,11 @@ Fit.Controls.WSDropDown = function(ctlId)
|
|
|
21109
21109
|
/// </function>
|
|
21110
21110
|
this.ReloadData = function(cb)
|
|
21111
21111
|
{
|
|
21112
|
-
//
|
|
21113
|
-
|
|
21114
|
-
clearData(false, function() // false = prevent clearData(..) from reloading data
|
|
21112
|
+
clearData(false, false, function() // false 1 = prevent clearData(..) from reloading data, false 2 = prevent action menu from updating to avoid flickering - done when data has been reloaded
|
|
21115
21113
|
{
|
|
21116
|
-
// Reload data. The action menu will once again be updated if no data is received
|
|
21117
|
-
// to make sure "Show available options" is replaced by "List with options is empty".
|
|
21118
|
-
|
|
21119
21114
|
ensureTreeViewData(function()
|
|
21120
21115
|
{
|
|
21116
|
+
updateActionMenu();
|
|
21121
21117
|
cb && cb(me);
|
|
21122
21118
|
});
|
|
21123
21119
|
});
|
|
@@ -21507,9 +21503,10 @@ Fit.Controls.WSDropDown = function(ctlId)
|
|
|
21507
21503
|
}
|
|
21508
21504
|
}
|
|
21509
21505
|
|
|
21510
|
-
function clearData(allowImmediateReload, cb)
|
|
21506
|
+
function clearData(allowImmediateReload, refreshActionMenu, cb)
|
|
21511
21507
|
{
|
|
21512
21508
|
Fit.Validation.ExpectBoolean(allowImmediateReload);
|
|
21509
|
+
Fit.Validation.ExpectBoolean(refreshActionMenu);
|
|
21513
21510
|
Fit.Validation.ExpectFunction(cb, true);
|
|
21514
21511
|
|
|
21515
21512
|
// Postpone if WebService operation is currently running
|
|
@@ -21532,7 +21529,7 @@ Fit.Controls.WSDropDown = function(ctlId)
|
|
|
21532
21529
|
// Update action menu in case "Show available options" has been disabled, which
|
|
21533
21530
|
// will be the case if the previous request returned no data. We need it enabled if
|
|
21534
21531
|
// action menu is enabled - otherwise the user won't be able to request updated data.
|
|
21535
|
-
updateActionMenu();
|
|
21532
|
+
refreshActionMenu && updateActionMenu();
|
|
21536
21533
|
|
|
21537
21534
|
// Cancel pending search operation if scheduled
|
|
21538
21535
|
|