ps-toolkit-ui 1.9.50 → 1.9.52
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/bundles/ps-toolkit-ui.umd.js +17 -16
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/form.class.js +8 -8
- package/esm2015/lib/classes/modal.class.js +2 -1
- package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +10 -10
- package/fesm2015/ps-toolkit-ui.js +17 -16
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1726,13 +1726,13 @@
|
|
|
1726
1726
|
return valid;
|
|
1727
1727
|
};
|
|
1728
1728
|
FormClass.prototype.clear = function () {
|
|
1729
|
-
this.method =
|
|
1730
|
-
this.url = this.baseUrl;
|
|
1731
|
-
this.setButtons(this.onTop, false);
|
|
1732
|
-
this.clearInputs();
|
|
1733
|
-
if (this.onTop)
|
|
1734
|
-
|
|
1735
|
-
}
|
|
1729
|
+
// this.method = Method.Post;
|
|
1730
|
+
// this.url = this.baseUrl;
|
|
1731
|
+
// this.setButtons(this.onTop, false);
|
|
1732
|
+
// this.clearInputs();
|
|
1733
|
+
// if (this.onTop){
|
|
1734
|
+
// this.focus();
|
|
1735
|
+
// }
|
|
1736
1736
|
};
|
|
1737
1737
|
FormClass.prototype.clearInputs = function () {
|
|
1738
1738
|
this.inputs.filter(function (x) { return x.type !== exports.InputType.Constant; }).forEach(function (inp) {
|
|
@@ -3168,6 +3168,7 @@
|
|
|
3168
3168
|
$__namespace('body').removeClass('open-modal');
|
|
3169
3169
|
$__namespace('#' + this.id + 'Modal').fadeOut(300, function () {
|
|
3170
3170
|
if (_this.form && _this.form.name !== 'Confirm' && _this.form.name !== 'Alert') {
|
|
3171
|
+
_this.form.clear();
|
|
3171
3172
|
if (_this.form.onHideModal) {
|
|
3172
3173
|
_this.form.onHideModal();
|
|
3173
3174
|
}
|
|
@@ -6926,15 +6927,15 @@
|
|
|
6926
6927
|
return true;
|
|
6927
6928
|
};
|
|
6928
6929
|
this.inp.clear = function () {
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6930
|
+
// this.inp.error = null;
|
|
6931
|
+
// this.inp.setValue(null, false);
|
|
6932
|
+
// this.changeType(VehicleType.Car);
|
|
6933
|
+
// this.car.clear();
|
|
6934
|
+
// this.motor.clear();
|
|
6935
|
+
// this.carF.clear();
|
|
6936
|
+
// this.carG.clear();
|
|
6937
|
+
// this.driver.clear();
|
|
6938
|
+
// this.fingerprint.clear();
|
|
6938
6939
|
};
|
|
6939
6940
|
this.inp.data = function () {
|
|
6940
6941
|
var d = { Type: _this.type };
|