improved table filtering and fixed #4507

This commit is contained in:
gabryon99 2020-10-05 18:38:31 +02:00
parent 811b3f8e3c
commit 93bafa569d
13 changed files with 464 additions and 545 deletions

View file

@ -145,6 +145,10 @@
$(self.dialog).find('.confirm-closing').fadeOut(100, function () {
$(self.dialog).find('button.close').fadeIn(100);
});
// clean the form when the modal is closed
// to prevent the fields flickering
self.cleanForm();
});
}
@ -159,7 +163,7 @@
// reset form values when the modal closes
this.delegateModalClosing();
this.data = data || this.fillFormModal();
this.options.onModalInit(this.data);
this.options.onModalInit(this.data, this);
$(this.element).parents('.modal').on('show.bs.modal', function () {
self.options.onModalShow();