#30: clear modal input text fields on detach

This commit is contained in:
koksnuss 2020-05-19 10:30:23 +02:00
parent aa585503dc
commit 1fb2ef6b0c

View File

@ -100,6 +100,8 @@ function detach(modal) {
$('#' + modal + '_action').off('click');
$('#' + modal + '_close').off('click');
$(document).off('keypress click');
$('#' + modal + ' input:text:visible').each(function() {
$(this).val(''); });
}
export { Modal, detach, hide };