ps-toolkit-ui 1.9.48 → 1.9.49

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.
@@ -3164,20 +3164,17 @@
3164
3164
  });
3165
3165
  };
3166
3166
  ModalClass.prototype.hide = function () {
3167
+ var _this = this;
3167
3168
  $__namespace('body').removeClass('open-modal');
3168
3169
  $__namespace('#' + this.id + 'Modal').fadeOut(300, function () {
3169
- // if (this.form && this.form.name !== 'Confirm' && this.form.name !== 'Alert'){
3170
- // this.form.clear();
3171
- // if (this.form.onHideModal){
3172
- // this.form.onHideModal();
3173
- // }
3174
- // }
3175
- // if (this.table && this.table.form){
3176
- // this.table.form.clear();
3177
- // }
3178
- // if (this.onHide){
3179
- // this.onHide();
3180
- // }
3170
+ if (_this.form && _this.form.name !== 'Confirm' && _this.form.name !== 'Alert') {
3171
+ if (_this.form.onHideModal) {
3172
+ _this.form.onHideModal();
3173
+ }
3174
+ }
3175
+ if (_this.table && _this.table.form) {
3176
+ _this.table.form.clear();
3177
+ }
3181
3178
  });
3182
3179
  };
3183
3180
  return ModalClass;