#30: clear modal input text fields on detach
This commit is contained in:
parent
aa585503dc
commit
1fb2ef6b0c
@ -100,6 +100,8 @@ function detach(modal) {
|
|||||||
$('#' + modal + '_action').off('click');
|
$('#' + modal + '_action').off('click');
|
||||||
$('#' + modal + '_close').off('click');
|
$('#' + modal + '_close').off('click');
|
||||||
$(document).off('keypress click');
|
$(document).off('keypress click');
|
||||||
|
$('#' + modal + ' input:text:visible').each(function() {
|
||||||
|
$(this).val(''); });
|
||||||
}
|
}
|
||||||
|
|
||||||
export { Modal, detach, hide };
|
export { Modal, detach, hide };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user